/* Daily v1.24.2: One fixed-size showcase area for every item type, no inherited icon geometry. */
body #mmd-market .mmd-market__grid{align-items:stretch!important;grid-auto-rows:auto!important}
body #mmd-market .mmd-market__grid>.mmd-market-item{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
body #mmd-market .mmd-market__grid>.mmd-market-item .mmd-market-item__preview{
  display:grid!important;place-items:center!important;width:100%!important;height:188px!important;min-height:188px!important;max-height:188px!important;
  margin:0 0 12px!important;padding:12px!important;overflow:hidden!important;box-sizing:border-box!important;
  border-radius:14px!important;isolation:isolate!important;
}
body #mmd-market .mmd-market__grid>.mmd-market-item .mmd-market-item__sample,
body #mmd-market .mmd-market__grid>.mmd-market-item .mmd-store-preview{
  display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;max-width:100%!important;
  position:relative!important;overflow:hidden!important;margin:0!important;padding:0!important;
  background:none!important;border:0!important;transform:none!important;box-shadow:none!important;
}
body #mmd-market .mmd-store-preview>img.mmd-store-preview__landscape{
  display:block!important;position:relative!important;width:100%!important;height:100%!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;
  border:0!important;background:transparent!important;border-radius:9px!important;margin:0!important;flex:0 1 auto!important;
}
body #mmd-market .mmd-store-preview--avatar_frame>img.mmd-store-preview__frame{
  display:block!important;position:relative!important;width:156px!important;height:156px!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;
  margin:auto!important;flex:0 1 auto!important;border:0!important;background:transparent!important;
}
body #mmd-market .mmd-store-preview--profile_theme>img.mmd-store-preview__kit-frame{
  position:absolute!important;right:4%!important;bottom:5%!important;width:65px!important;height:65px!important;
  max-width:26%!important;object-fit:contain!important;pointer-events:none!important;z-index:2!important;
}
body #mmd-market .mmd-store-preview__flair-image,
body #mmd-market .mmd-store-preview__icon>img,
body #mmd-market .mmd-store-preview__icon>svg{
  display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:145px!important;
  object-fit:contain!important;object-position:center!important;flex:0 1 auto!important;margin:auto!important;border:0!important;
  transform:none!important;filter:none!important;
}
body #mmd-market .mmd-store-preview__icon{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;max-height:100%!important;overflow:hidden!important;padding:0!important;margin:0!important}
body #mmd-market .mmd-market-item__meta{min-height:21px!important;align-items:center!important}
body #mmd-market .mmd-market-item h4{margin:0 0 5px!important;overflow-wrap:anywhere!important;line-height:1.3!important}
body #mmd-market .mmd-market-item>p{flex:1 1 auto!important;min-height:0!important;margin:0 0 10px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body #mmd-market .mmd-market-item__foot{margin-top:auto!important;flex-shrink:0!important}
body #mmd-market .mmd-store-preview__bubble-example{display:grid;align-content:center;gap:5px;width:min(93%,260px);min-height:75px;
  border-radius:17px 17px 17px 5px;padding:15px 14px;text-align:left;
  border:1px solid color-mix(in srgb,var(--mmd-demo-a) 65%,transparent);
  background:linear-gradient(130deg,color-mix(in srgb,var(--mmd-demo-a) 30%,#12242b),color-mix(in srgb,var(--mmd-demo-b) 24%,#112029));
  color:#fff;box-shadow:0 5px 15px rgba(0,0,0,.16)}
body #mmd-market .mmd-store-preview__bubble-example strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
body #mmd-market .mmd-store-preview__bubble-example small{font-size:10px;color:rgba(255,255,255,.75)}
body #mmd-market .mmd-store-preview__emoji-example{font-size:clamp(20px,2.7vw,31px);line-height:1.4;white-space:normal;text-align:center}
body #mmd-market .mmd-store-preview__ticket-example{padding:14px 16px;border:2px dashed #c6df91;border-radius:14px;font-weight:900;color:#ffda85;background:#28302b;white-space:nowrap;max-width:100%;font-size:clamp(11px,1.5vw,16px)}
body #mmd-market .mmd-store-preview__subline{font-size:11px!important;text-align:center!important;margin:4px 0 0!important}
body #mmd-market .mmd-mm-retired-notice{font-size:11px;color:#ffdaa1;line-height:1.35}
@media(max-width:680px){body #mmd-market .mmd-market__grid>.mmd-market-item .mmd-market-item__preview{height:176px!important;min-height:176px!important;max-height:176px!important}}
@media(max-width:370px){body #mmd-market .mmd-market__grid>.mmd-market-item .mmd-market-item__preview{height:166px!important;min-height:166px!important;max-height:166px!important}}
@media(prefers-reduced-motion:reduce){body #mmd-market .mmd-store-preview__username-text{animation:none!important}}

/* My Purchases: use the same canonical preview art in a small fixed thumbnail. */
.mmd-mm-inventory .mmd-mm-owned__preview{display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 76px!important;width:76px!important;height:68px!important;max-width:76px!important;min-width:76px!important;
  overflow:hidden!important;padding:4px!important;border-radius:10px!important;
  background:rgba(7,22,30,.55)!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview{display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-width:0!important;overflow:hidden!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview img{display:block!important;max-width:100%!important;max-height:100%!important;
  width:auto!important;height:auto!important;object-fit:contain!important;margin:0 auto!important;transform:none!important;filter:none!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__kit-frame{display:none!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__username-text{font-size:10px!important;max-width:100%!important;line-height:1.2!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__username>img{max-width:24px!important;max-height:24px!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__username{display:flex!important;gap:3px!important;max-width:100%!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__subline{display:none!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__emoji-example{font-size:12px!important;white-space:nowrap!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__bubble-example{display:flex!important;min-height:0!important;
  padding:4px!important;font-size:9px!important;border-radius:6px!important;width:100%!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__bubble-example strong{font-size:8px!important;line-height:1.1!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__bubble-example small{display:none!important}
.mmd-mm-inventory .mmd-mm-owned__preview .mmd-store-preview__ticket-example{font-size:7px!important;padding:4px!important;white-space:normal!important;text-align:center!important}


/* Daily 1.24.3: category filtering. The 1.24.2 card rule above uses
   display:flex!important; without this stronger hidden selector the UI
   updates its category but leaves every card visible. */
body #mmd-market .mmd-market__grid > .mmd-market-item[hidden],
body #mmd-market .mmd-market__grid > .mmd-market-item.mmd-market-item--filtered {
  display: none !important;
}

/* Retain the dropdown as a second, accessible way to choose a category;
   it stays synchronized with the horizontally scrollable category tabs. */
body #mmd-market .mmd-cosmetics-filter {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) auto !important;
  align-items: end !important;
  gap: 12px !important;
}
body #mmd-market.mmd-market-ui-ready .mmd-cosmetics-filter label.mmd-market-ui-category-select {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}
body #mmd-market .mmd-cosmetics-filter select[data-mmd-cosmetic-type] {
  min-height: 42px;
  width: 100%;
}
@media (max-width: 790px) {
  body #mmd-market .mmd-cosmetics-filter {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr) !important;
  }
  body #mmd-market .mmd-cosmetics-filter [data-mmd-cosmetic-count] {
    grid-column: 1 / -1;
    padding: 0 !important;
  }
}
@media (max-width: 480px) {
  body #mmd-market .mmd-cosmetics-filter { grid-template-columns: minmax(0, 1fr) !important; }
  body #mmd-market .mmd-cosmetics-filter [data-mmd-cosmetic-count] { grid-column: 1; }
}
