/* Marketplace in the style of the new home page: flat dark page, thin grey lines, square pictures, prices as coloured text. Loaded last. */
.mk-head, .market-panel, .mk-board { --v-line: rgba(255, 255, 255, .1); --v-dim: #8d9ab0; }

/* head: the title, the search, the two views as plain tabs */
.mk-title h1 { font-size: 26px; font-weight: 760; letter-spacing: -.025em; }
.mk-title h1 span { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.mk-title p { display: none; }
.mk-search { height: 46px; border: 1px solid var(--v-line); border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-search:focus-within { border-color: rgba(98, 190, 255, .55); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 3px rgba(74, 168, 255, .14); }
.mk-search input::placeholder { color: #a3b0c4; }
.mk-search kbd { border: 1px solid var(--v-line); border-radius: 5px; background: none; color: var(--v-dim); }
.mk-tabs { gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.mk-tab { position: relative; height: 44px; padding: 0 16px; border: 0 !important; border-radius: 10px 10px 0 0 !important; background: transparent !important; box-shadow: none !important; color: #8d9ab0; font-weight: 650; transition: color .18s ease, background .18s ease; }
.mk-tab:hover { color: #e6edf7; background: rgba(255, 255, 255, .04) !important; }
.mk-tab.active { color: #fff; }
.mk-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4aa8ff, #8f9bff); box-shadow: 0 0 12px rgba(74, 168, 255, .7); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.mk-tab.active::after { transform: scaleX(1); }
.mk-tab::before { display: none !important; }

/* the sections: no box */
.market-panel, .mk-panel, .mk-catalog { border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mk-sec-head h2, .mk-results-head { font-weight: 750; letter-spacing: -.01em; }
.mk-btn, .mk-filter-btn { border: 1px solid var(--v-line); border-radius: 8px; background: transparent !important; box-shadow: none; color: #e4ecf8; }
.mk-btn:hover, .mk-filter-btn:hover, .mk-filter-btn.is-open { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .2); }

/* filters: a column with a line, plain rows */
.mk-side { border: 0; border-right: 1px solid var(--v-line); border-radius: 0; background: none; box-shadow: none; }
.mk-acc { border-color: var(--v-line); }
.mk-acc-head { color: #e4ecf8; font-weight: 700; }
.mk-chip { border-radius: 6px; background: transparent; box-shadow: none; }
.mk-chip.is-on { color: #fff; }
.mk-side *, .mk-main *, .mk-av-body * { scrollbar-width: none !important; }
.mk-side *::-webkit-scrollbar, .mk-main *::-webkit-scrollbar, .mk-av-body *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* the items: a square picture, the name, the price as coloured text */
.market-item-card, .market-item-card:hover { border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; overflow: visible; }
.market-item-art { border-radius: 0; box-shadow: none; overflow: hidden; background: #0a0e15; }
.market-item-art img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.market-item-card:hover .market-item-art img { transform: scale(1.07); }
.market-item-info { padding: 12px 2px 0; }
.market-item-info h3 { font-size: 14.5px; font-weight: 700; color: #f1f5fb; }
.market-price-badge, .market-price-badge.is-paid, .market-price-badge.is-free { padding: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; font-weight: 700; }
.market-price-badge.is-paid { color: #fbbf24; }
.market-price-badge.is-free { color: #4ade9b; }

/* wins over the older layers */
body .mk-main .market-item-card, body .mk-main .market-item-card:hover, body .mk-av-body .market-item-card { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
body .market-item-card::before, body .market-item-card::after, body .market-item-art::before, body .market-item-art::after { display: none !important; }
body .market-item-art { border-radius: 0 !important; background: #0a0e15 !important; box-shadow: none !important; border: 0 !important; }
body .mk-scroll, body .mk-side, body .mk-side-in, body .mk-main, body .mk-av-body, body .mk-scroll * { scrollbar-width: none !important; -ms-overflow-style: none; }
body .mk-scroll::-webkit-scrollbar, body .mk-side::-webkit-scrollbar, body .mk-side-in::-webkit-scrollbar, body .mk-main::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
body .mk-results-head { text-align: left; margin-bottom: 12px; }

/* round 2: no title, one tile style for items and avatars, the avatars search like the top one */
.mk-title { display: none !important; }
body .mk-head { display: flex; align-items: center; gap: 16px; }
body .mk-head .mk-search { flex: 1 1 auto; max-width: none; }
body .mk-head .mk-tabs { margin-left: auto; }

/* the picture of a tile: a soft light behind the item, a thin line around it */
body .market-item-art, body .avatar-card-art { border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 0 !important; background: radial-gradient(75% 65% at 50% 32%, rgba(130, 165, 225, .22), transparent 72%), linear-gradient(180deg, #0f141d, #080b11) !important; }
body .market-item-art img { padding: 18px; }
body .market-item-card:hover .market-item-art, body .avatar-card:hover .avatar-card-art { border-color: rgba(255, 255, 255, .22) !important; }
body .market-grid { --mk-min: 190px; gap: 30px 20px; }
body .market-item-info { gap: 6px; padding: 12px 2px 0; }
body .market-item-info h3 { min-height: 2.7em; font-size: 14px; line-height: 1.35; }
body .market-item-info .market-price-badge { margin-top: 2px; font-size: 14px; }
body .market-item-card { display: flex; flex-direction: column; }

/* avatars: flat tiles like the items */
body .avatar-card, body .avatar-card:hover { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; overflow: visible; }
body .avatar-card::before { display: none !important; }
body .avatar-card-art { aspect-ratio: 1 / 1; }
body .avatar-card-copy { padding: 12px 2px 0; gap: 6px; }
body .avatar-card-copy strong { font-size: 14px; font-weight: 700; }
body .avatar-card-price { font-size: 14px; font-weight: 700; background: none !important; padding: 0 !important; border: 0 !important; }
body .avatar-card-price.is-paid { color: #fbbf24; }
body .avatar-card-price.is-free { color: #4ade9b; }

/* avatars toolbar: the same bar as the one at the top */
body .avatar-toolbar { display: flex; align-items: center; gap: 12px; }
body .avatar-toolbar .market-search { position: relative; flex: 1 1 auto; }
body .avatar-toolbar .market-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body .avatar-toolbar .market-search::before { content: ''; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #8d9ab0; -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
body .avatar-toolbar .market-search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border: 1px solid var(--v-line); border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: none; color: #f2f6fc; font: 500 14.5px Inter, sans-serif; }
body .avatar-toolbar .market-search input::placeholder { color: #a3b0c4; }
body .avatar-toolbar .market-search input:focus { border-color: rgba(98, 190, 255, .55); background: rgba(255, 255, 255, .04); outline: 0; box-shadow: 0 0 0 3px rgba(74, 168, 255, .14); }
body .avatar-toolbar .market-filter:not(.market-search) > span { display: none; }
body .avatar-toolbar .rdash-select-trigger { height: 46px; border: 1px solid var(--v-line); border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: none; }
body .avatar-toolbar button.market-primary, body .avatar-toolbar [id*="ublish"], body .avatar-view-actions button { border: 1px solid var(--v-line); border-radius: 8px; background: transparent !important; box-shadow: none; color: #e4ecf8; }
body .avatar-toolbar button:hover, body .avatar-view-actions button:hover { background: rgba(255, 255, 255, .06) !important; }
body .mk-results-head { justify-content: flex-start; }
body .mk-results-head::before, body .mk-results-head::after { display: none; }

/* round 3: round blue light behind the pictures, a calmer avatars section, a search with no blue glow */
body .market-item-art, body .avatar-card-art { background: radial-gradient(circle at 50% 46%, rgba(58, 149, 238, .42) 0, rgba(58, 149, 238, .16) 38%, transparent 70%), linear-gradient(180deg, #0c1119, #070a10) !important; }
.mk-search:focus-within, body .avatar-toolbar .market-search input:focus { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); box-shadow: none; }
body .mk-avatars .mk-sec-head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--v-line); }
body .mk-avatars .mk-sec-head::after, body .mk-avatars .mk-sec-head h2::after { display: none; }
body .mk-avatars .mk-sec-head h2 { font-size: 18px; }
body .mk-av-body { padding: 0; }
body .avatar-toolbar { margin: 0 0 22px; }
body .avatar-grid { --mk-min: 180px; gap: 30px 20px; }
body .avatar-card-art img { object-fit: contain; object-position: center; padding: 10px; box-sizing: border-box; }
body .avatar-card-art { aspect-ratio: 4 / 5; }
body .avatar-fav-box { top: 8px; right: 8px; }
body .avatar-favorite { border: 0 !important; border-radius: 6px !important; background: rgba(5, 7, 11, .7) !important; box-shadow: none !important; }
body .avatar-view-actions { gap: 8px; }
body .market-loading, body .market-empty { color: #8d9ab0; text-align: center; padding: 40px 0; }
body .avatar-toolbar .market-search { flex: 1 1 0; min-width: 0; }
body .avatar-toolbar .market-filter:not(.market-search) { flex: 0 0 170px; min-width: 0; }
body .avatar-toolbar .market-filter .rdash-select-wrap { width: 100% !important; }
body .avatar-toolbar > button { flex: 0 0 auto; height: 46px; padding: 0 18px; }
body .mk-avatars .mk-sec-head { align-items: center; }
body .avatar-toolbar > button.publish-avatar-launch { width: auto !important; max-width: none; flex: 0 0 auto; border-radius: 8px; }

/* round 4: items and avatars as framed tiles: the picture on top, the name and the price in a padded block under it */
body .market-grid { --mk-min: 200px; gap: 18px; }
body .mk-main .market-item-card, body .mk-main .market-item-card:hover, body .mk-av-body .avatar-card, body .mk-av-body .avatar-card:hover { display: flex; flex-direction: column; overflow: hidden !important; border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px !important; background: rgba(255, 255, 255, .025) !important; box-shadow: none !important; transition: border-color .2s ease, background .2s ease !important; }
body .mk-main .market-item-card:hover, body .mk-av-body .avatar-card:hover { border-color: rgba(255, 255, 255, .26) !important; background: rgba(255, 255, 255, .045) !important; }
body .market-item-art, body .avatar-card-art { border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 0 !important; }
body .market-item-info, body .avatar-card-copy { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px 16px 16px !important; }
body .market-item-info h3 { min-height: 2.7em; margin: 0; font-size: 14px; line-height: 1.35; }
body .market-item-info .market-price-badge, body .avatar-price-line { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
body .mk-open { top: 10px; right: 10px; border-radius: 6px; background: rgba(5, 7, 11, .7); }
body .avatar-fav-box { z-index: 4; }

/* avatars section: a head with the actions, a toolbar in a block, then the tiles */
body .mk-avatars { padding: 0; }
body .mk-avatars .mk-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; padding: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
body .mk-avatars .mk-sec-head h2 { margin: 0; }
body .avatar-toolbar { padding: 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; background: rgba(255, 255, 255, .025); margin: 0 0 22px; }
body .avatar-grid { --mk-min: 190px; gap: 18px; }
body .avatar-card-art { aspect-ratio: 1 / 1.1; }
body .market-loading, body .market-empty { max-width: 460px; margin: 40px auto; padding: 28px 20px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; background: rgba(255, 255, 255, .02); }

/* round 5: a stronger redesign: framed filter column, tiles with a light round at the top, a stage under every item, calmer avatars */
body .mk-board { gap: 0; }
body .mk-shell { gap: 24px; }
body .mk-side { align-self: flex-start; position: sticky; top: 14px; padding: 4px 0; border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .025) !important; }
body .mk-acc { padding: 0 16px; }
body .mk-acc-head { padding: 14px 0; font-size: 13px; letter-spacing: .02em; }
body .mk-chip { padding: 6px 10px; border-radius: 6px; color: #aab6c9; }
body .mk-chip.is-on { background: rgba(255, 255, 255, .08); color: #fff; }
body .mk-results-head { margin: 2px 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 18px; }

body .mk-main .market-item-card, body .mk-av-body .avatar-card { border-radius: 8px 8px 0 0 !important; }
body .market-item-art, body .avatar-card-art { position: relative; border-radius: 8px 8px 0 0 !important; overflow: hidden; }
body .market-item-art::before, body .avatar-card-art::before { display: block !important; content: ''; position: absolute; z-index: 0; left: 18%; right: 18%; bottom: 7%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(58, 149, 238, .38), rgba(58, 149, 238, 0)); }
body .market-item-art img, body .avatar-card-art img { position: relative; z-index: 1; }
body .market-item-card:hover .market-item-art img, body .avatar-card:hover .avatar-card-art img { transform: scale(1.06) translateY(-2px); }
body .market-item-info { padding: 14px 16px 16px !important; }
body .market-item-info h3 { font-size: 14px; font-weight: 700; }
body .mk-creator { color: #8d9ab0; font-size: 12.5px; }
body .market-price-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
body .mk-rbx { width: 15px; height: 15px; }

/* the avatars section */
body .mk-avatars .mk-sec-head h2 { font-size: 19px; letter-spacing: -.01em; }
body .avatar-view-actions button { height: 38px; padding: 0 14px; border-radius: 8px; }
body .avatar-toolbar { gap: 12px; padding: 12px; border-radius: 10px 10px 0 0; }
body .avatar-toolbar .market-search input, body .avatar-toolbar .rdash-select-trigger { height: 44px; }
body .avatar-card-art { aspect-ratio: 4 / 5; }
body .avatar-card-art img { object-fit: contain; padding: 14px 10px 4px; }
body .avatar-card-copy { padding: 14px 16px 16px !important; gap: 6px; }
body .avatar-card-copy strong { font-size: 14.5px; }
body .avatar-card-topline { gap: 8px; }
body .avatar-price-line { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
body .avatar-fav-box { position: absolute; top: 10px; right: 10px; z-index: 5; }
body .avatar-favorite { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px !important; background: rgba(5, 7, 11, .72) !important; border: 1px solid rgba(255, 255, 255, .12) !important; }
body .avatar-favorite img { width: 16px; height: 16px; }
body .avatar-grid { --mk-min: 200px; gap: 18px; }

/* ======================================================================================================================
   round 6: one tile for items and avatars; the avatars section laid out exactly like the catalog: a filter column on the left, the tiles on the right
   ====================================================================================================================== */
body .market-grid, body .avatar-grid { --mk-min: 210px; gap: 20px !important; }
body .mk-main .market-item-card, body .mk-av-body .avatar-card { border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 10px !important; background: rgba(255, 255, 255, .025) !important; overflow: hidden !important; transition: background .25s ease, border-color .25s ease !important; }
body .mk-main .market-item-card:hover, body .mk-av-body .avatar-card:hover { background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .24) !important; }
body .market-item-art, body .avatar-card-art { aspect-ratio: 1 / 1 !important; border: 0 !important; border-radius: 0 !important; background: radial-gradient(circle at 50% 46%, rgba(74, 168, 255, .42) 0, rgba(74, 168, 255, .15) 40%, transparent 72%), linear-gradient(180deg, #0b1220, #060a12) !important; }
body .market-item-art img, body .avatar-card-art img { padding: 16px !important; object-fit: contain !important; transition: transform .6s cubic-bezier(.2, .9, .25, 1) !important; }
body .market-item-info, body .avatar-card-copy { gap: 8px !important; padding: 14px 16px 16px !important; border-top: 1px solid rgba(255, 255, 255, .06); }
body .market-item-info h3, body .avatar-card-copy strong { font-size: 14px !important; font-weight: 600 !important; line-height: 1.35; }
body .market-price-badge, body .avatar-card-price { font-size: 14px; font-weight: 700; }
body .mk-creator { font-size: 12.5px; color: #8d9ab0; }

/* the avatars: a column of filters on the left, like the catalog */
@media (min-width: 900px) {
    body .mk-av-body { display: grid !important; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
    body .avatar-toolbar { grid-column: 1; position: sticky; top: 14px; flex-direction: column !important; align-items: stretch !important; gap: 14px !important; padding: 16px !important; margin: 0 !important; border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px !important; background: rgba(255, 255, 255, .025) !important; }
    body .mk-av-body > .mk-scroll, body .mk-av-body > #avatarsScroll { grid-column: 2; }
    body .avatar-toolbar .market-search, body .avatar-toolbar .market-filter:not(.market-search), body .avatar-toolbar > button { flex: none !important; width: 100% !important; }
    body .avatar-toolbar .market-filter > span { position: static !important; width: auto !important; height: auto !important; clip: auto !important; display: block !important; margin: 0 0 7px; color: #8d9ab0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    body .avatar-toolbar .market-search::before { top: auto; bottom: 14px; margin: 0; }
    body .avatar-toolbar > button.publish-avatar-launch { height: 44px; }
}
body .mk-avatars .mk-sec-head h2 { font-size: 18px; }

/* ======================================================================================================================
   round 7: the tile as a poster: the item fills the tile on a round blue light, the name and the price sit on a dark band at the bottom.
   Items and avatars share it.
   ====================================================================================================================== */
body .market-grid, body .avatar-grid { --mk-min: 200px; gap: 18px !important; }
body .mk-main .market-item-card, body .mk-av-body .avatar-card, body .mk-main .market-item-card:hover, body .mk-av-body .avatar-card:hover { position: relative; display: block !important; aspect-ratio: 4 / 5; padding: 0 !important; overflow: hidden !important; border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px !important; background: #060a14 !important; transform: none !important; box-shadow: none !important; transition: border-color .25s ease !important; }
body .mk-main .market-item-card:hover, body .mk-av-body .avatar-card:hover { border-color: rgba(120, 170, 255, .5) !important; }
body .market-item-art, body .avatar-card-art, body .avatar-card-open { position: absolute !important; inset: 0 !important; width: 100%; height: 100% !important; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; background: radial-gradient(circle at 50% 42%, rgba(74, 168, 255, .5) 0, rgba(74, 168, 255, .18) 36%, transparent 70%), linear-gradient(180deg, #0a1226, #050a18) !important; }
body .avatar-card-open { padding: 0; }
body .avatar-card-open .avatar-card-art { position: absolute !important; }
body .market-item-art img, body .avatar-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 22px 22px 70px !important; object-fit: contain !important; transition: transform .6s cubic-bezier(.2, .9, .25, 1) !important; }
body .market-item-card:hover .market-item-art img, body .avatar-card:hover .avatar-card-art img { transform: scale(1.07) translateY(-4px); }
body .market-item-info, body .avatar-card-copy { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; display: flex !important; flex-direction: column; gap: 4px !important; padding: 34px 14px 13px !important; border: 0 !important; background: linear-gradient(0deg, rgba(3, 6, 14, .96) 0, rgba(3, 6, 14, .82) 55%, transparent 100%) !important; text-align: left; }
body .market-item-info h3, body .avatar-card-copy strong { display: block; min-height: 0 !important; margin: 0; overflow: hidden; color: #f2f6fc; font-size: 14px !important; font-weight: 650 !important; text-overflow: ellipsis; white-space: nowrap; -webkit-line-clamp: unset; }
body .market-item-info .mk-creator { display: none; }
body .market-item-info .market-price-badge, body .avatar-price-line, body .avatar-card-price { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px; font-weight: 700; }
body .mk-open { top: 10px !important; right: 10px !important; z-index: 3; opacity: 0; transition: opacity .25s ease; }
body .market-item-card:hover .mk-open { opacity: 1; }
body .avatar-fav-box { position: absolute !important; top: 10px; right: 10px; z-index: 4; }

/* ======================================================================================================================
   round 8: a quieter tile: "Limited" sits in the info band (not on the picture), "Resale" is a small note next to the price,
   and the light behind the item is soft
   ====================================================================================================================== */
body .market-item-art, body .avatar-card-art { background: radial-gradient(circle at 50% 44%, rgba(120, 150, 210, .16) 0, rgba(120, 150, 210, .06) 40%, transparent 72%), linear-gradient(180deg, #0a0f1c, #060914) !important; }
body .market-item-art .limited-tag { display: none !important; }
body .market-item-info .mk-price-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
body .market-item-info .mk-price-row .market-price-badge { flex: none; min-width: 0; }
body .market-price-badge .mk-resale { position: static !important; display: inline-block; margin-left: 2px; padding: 0 !important; border: 0; background: none !important; color: #8d9ab0 !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; opacity: 1; }
body .market-price-badge .mk-resale::before { content: '· '; }
body .market-item-info .mk-lim { margin-left: auto; padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; color: #aab6ca; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Limited is back on the picture, but as a small glass chip with a thin edge and a violet dot, not a bright badge */
html body .market-item-art .limited-tag { display: inline-flex !important; align-items: center; gap: 6px; position: absolute; z-index: 4; top: 10px; left: 10px; padding: 4px 9px 4px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(6, 10, 22, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; color: #e4ecf8; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html body .market-item-art .limited-tag::before { content: ''; display: block !important; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #4aa8ff, #8f6bff); box-shadow: 0 0 8px rgba(143, 107, 255, .8); }
/* the tile: a soft top light in the blue-violet of the site, a hairline frame that brightens on hover, the band at the bottom a little more transparent */
body .market-item-art, body .avatar-card-art { background: radial-gradient(70% 55% at 50% 0%, rgba(120, 140, 255, .16), transparent 70%), radial-gradient(circle at 50% 50%, rgba(74, 168, 255, .1) 0, transparent 62%), linear-gradient(180deg, #0a1020, #060914) !important; }
body .mk-main .market-item-card:hover { border-color: rgba(143, 155, 255, .45) !important; }
body .market-item-info { background: linear-gradient(0deg, rgba(4, 7, 16, .94) 0, rgba(4, 7, 16, .7) 60%, transparent 100%) !important; }

/* a resale price has the colour of a normal price; only the "Resale" mark is coloured */
html body .market-price-badge.is-resale, html body .market-price-badge.is-resale strong { color: #fbbf24 !important; }
html body .market-price-badge .mk-resale { padding: 2px 7px !important; border: 1px solid rgba(167, 139, 250, .4); border-radius: 5px; background: rgba(167, 139, 250, .14) !important; color: #c9b8ff !important; font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .05em !important; text-transform: uppercase !important; margin-left: 4px; }
html body .market-price-badge .mk-resale::before { content: none; }
html body .limited-tag { display: none !important; }

/* ======================================================================================================================
   round 9: the avatars are laid out exactly like the catalog: the search on the top, the filters on the left, the results on the right
   ====================================================================================================================== */
body .mk-main.mk-av-body { display: flex !important; flex-direction: column; grid-template-columns: none; gap: 0; padding: 0; }
body .mk-av-shell .mk-chips.avatar-view-actions { display: flex; flex-wrap: wrap; gap: 6px; }
body .mk-av-shell .avatar-view-actions button.mk-chip { width: auto; height: auto; min-height: 0; padding: 7px 12px; border-radius: 6px; }
body .mk-av-shell .mk-chip.active { border-color: var(--mk-accent-line, rgba(143, 155, 255, .5)); background: var(--mk-accent-soft, rgba(143, 155, 255, .14)); color: #fff; }
body .mk-av-shell .avatar-favorites-filter img { display: none; }
body .mk-av-shell .mk-publish { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 14px; border: 0 !important; border-radius: 8px; background: #f2f6fc !important; color: #05070b !important; font-weight: 700; text-decoration: none; }
body .mk-av-shell .mk-publish:hover { background: #fff !important; }
body .mk-av-shell .mk-publish .publish-count { padding: 1px 7px; border-radius: 999px; background: rgba(5, 7, 11, .12); font-size: 12px; font-weight: 700; }
body .mk-avatars .mk-sec-head { display: none; }
@media (max-width: 900px) { body .mk-av-shell .mk-side { display: block !important; } body .mk-av-shell { display: block; } }
body .mk-avatars .mk-av-shell { width: 100%; }
body .mk-av-shell .mk-main { min-width: 0; }
body .mk-av-shell .mk-publish { width: calc(100% - 20px); margin: 14px 10px 8px; box-sizing: border-box; }
body .mk-av-shell .mk-results-head { width: 100%; box-sizing: border-box; }
body .mk-av-shell .mk-results-head h2 { max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }

/* the avatars: the results fill the whole column (a grid of tiles, not one under another) and the search has no second layer inside */
body .mk-av-shell .mk-scroll, body .mk-av-shell #avatarsScroll { width: 100%; align-self: stretch; min-width: 0; }
body .mk-av-shell .avatar-grid, body .mk-av-shell #avatarsGrid { width: 100%; box-sizing: border-box; grid-template-columns: repeat(auto-fill, minmax(var(--mk-min, 200px), 1fr)) !important; }
html body .mk-search input, html body #avatarSearch, html body #itemSearch { background: transparent !important; box-shadow: none !important; border: 0 !important; outline: 0; }
body .mk-avatars .mk-av-shell { flex: 1 1 0 !important; min-height: 0; max-height: none !important; }

/* the star of an avatar tile: right in the corner, only the icon (no background, no frame) */
html body .avatar-fav-box { top: 4px !important; right: 4px !important; z-index: 5; }
html body .avatar-favorite, html body .avatar-favorite:hover { width: 30px !important; height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body .avatar-favorite img { width: 20px !important; height: 20px !important; opacity: .85; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .85)); transition: transform .2s ease, opacity .2s ease; }
html body .avatar-favorite:hover img { opacity: 1; transform: scale(1.12); }

/* the blurred preview of the catalog (browser, no app) uses the same poster tile as the real list */
body .mk-lock-grid .mk-ghost-card { position: relative; display: block !important; aspect-ratio: 4 / 5; padding: 0 !important; overflow: hidden !important; border: 1px solid rgba(255, 255, 255, .13) !important; border-radius: 10px !important; background: #060a14 !important; transform: none !important; box-shadow: none !important; }

/* the star of an avatar tile: just the star in the corner, nothing behind it */
html body .marketplace-page .avatar-fav-box, html body .avatar-fav-box { height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* "My avatars" / "Favorites" in the filters: the same plain rows as every other filter, no box behind them */
html body .mk-av-shell .mk-chips.avatar-view-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; margin: 0; }
html body .mk-av-shell .avatar-view-actions button.mk-chip, html body .mk-av-shell .avatar-view-actions button.mk-chip:hover { display: block; width: 100%; height: 34px; min-height: 0; padding: 0 11px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none; color: #a3aec1; font: 600 13.5px/34px Inter, sans-serif; text-align: left; }
html body .mk-av-shell .avatar-view-actions button.mk-chip:hover { background: rgba(255, 255, 255, .06) !important; }
html body .mk-av-shell .avatar-view-actions button.mk-chip.active, html body .mk-av-shell .avatar-view-actions button.mk-chip[aria-pressed="true"] { background: transparent !important; color: #4aa8ff; font-weight: 750; }

/* the blurred preview: bigger tiles, and a calmer, roomier card on top of it */
body .mk-lock-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
body .mk-lock-ghost { filter: blur(5px) saturate(.9); }
