.market-page {
  --market-card: #171718;
  --market-nested: rgba(0, 0, 0, 0.24);
  --market-yellow: #ffdf00;
  --market-border: rgba(255, 255, 255, 0.11);
  --market-muted: #a8a8b2;
  width: 100%;
  max-width: 1272px;
  margin-right: auto;
  margin-left: auto;
  padding: 2rem 0 4rem;
  color: #f5f5f7;
}

.market-page h1, .market-page h2, .market-page h5, .market-profile-reputation h5 { margin: 0; font-weight: 750; }
.market-page a { color: inherit; }
.market-card { background: #171718; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; }
.market-nested-card { background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; }
.market-kicker { color: #ffdf00; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.market-muted { color: var(--market-muted); }

.market-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: clamp(1.35rem, 3vw, 2.5rem); }
.market-hero h1 { margin-top: .35rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.market-hero p, .market-section-heading p { max-width: 700px; margin: .7rem 0 0; color: var(--market-muted); }
.market-hero__actions,
.market-owner-actions,
.market-form__actions,
.market-deal__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.market-hero__actions { min-width: min(100%, 520px); flex: 1 1 520px; }
.market-hero__post-action { flex: 0 0 auto; }
.market-hero__post-action .market-btn { min-width: 145px; }
.market-hero__actions > *,
.market-owner-actions > *,
.market-form__actions > *,
.market-deal__actions > * { width: 100%; }
.market-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
  padding: 0;
  overflow-x: visible;
  border: 0;
  background: transparent;
}
.market-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78) !important;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.market-navigation a:hover,
.market-navigation a[aria-current="page"] {
  border-color: rgba(255,213,0,.38);
  background: rgba(184,156,1,.06);
  color: #ffdf00 !important;
}

.market-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.78); font: inherit; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.market-btn:hover { border-color: rgba(255,213,0,.38); background: rgba(184,156,1,.06); color: #ffdf00 !important; }
.market-btn--primary { color: #ffdf00 !important; background: rgba(184,156,1,.06); border-color: rgba(255,213,0,.38); }
.market-btn--primary:hover { background: rgba(255,223,0,.13); border-color: rgba(255,223,0,.65); }
.market-btn--secondary { color: rgba(255,255,255,.78) !important; }
.market-btn--danger { color: #ff8e93; background: rgba(110,20,27,.16); border-color: rgba(255,86,96,.4); }
.market-btn--danger:hover { color: #ffb1b5 !important; background: rgba(110,20,27,.28); border-color: rgba(255,86,96,.65); }
.market-btn--full { width: 100%; }

.market-filter { display: grid; grid-template-columns: minmax(200px, 1.1fr) repeat(4, minmax(155px, .8fr)) auto; gap: .65rem; margin: 1rem 0 2rem; padding: .9rem; }
.market-filter__search { position: relative; }
.market-filter__search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #ffdf00; }
.market-filter__search input { width: 100%; padding-left: 2.4rem; }
.market-filter .gh-custom-filter__toggle { font-weight: 600; }
.market-filter .gh-custom-filter__menu { max-height: 280px; overflow-x: hidden; overflow-y: auto; background: #111112; }
.market-filter .gh-custom-filter__option { white-space: normal; }
.market-filter > .gh-custom-filter:nth-child(2) .gh-custom-filter__menu { width: min(290px, calc(100vw - 3rem)); }
.market-input { width: 100%; min-height: 44px; padding: .65rem .8rem; color: #f5f5f7; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color-scheme: dark; }
.market-input:focus { outline: 0; border-color: #ffdf00; box-shadow: 0 0 0 3px rgba(255,223,0,.1); }
.market-input option { background: #171718; }
.market-form-dropdown { width: 100%; }
.market-form-dropdown__native { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.market-form-dropdown .gh-custom-filter__menu { width: 100%; max-height: 280px; overflow-x: hidden; overflow-y: auto; background: #111112; }
.market-form-dropdown .gh-custom-filter__option { white-space: normal; }
select.market-input { scrollbar-width: thin; scrollbar-color: #ffdf00 #111114; }
select.market-input::-webkit-scrollbar { width: 9px; }
select.market-input::-webkit-scrollbar-track { background: #111114; box-shadow: none; }
select.market-input::-webkit-scrollbar-thumb { min-height: 32px; background: #ffdf00; background-image: none; border: 2px solid #111114; border-radius: 999px; box-shadow: none; }
select.market-input::-webkit-scrollbar-thumb:hover { background: #ffe84d; background-image: none; box-shadow: none; }

.market-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 1rem; }
.market-section-heading > span { color: var(--market-muted); }
.market-listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.market-listing-card { position: relative; overflow: hidden; min-width: 0; background: #171718; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.market-listing-card:hover { transform: translateY(-3px); border-color: rgba(255,223,0,.4); box-shadow: 0 18px 35px rgba(0,0,0,.28); }
.market-listing-card__link { position: absolute; inset: 0; z-index: 1; }
.market-listing-card__media { position: relative; aspect-ratio: 16/10; background: rgba(0,0,0,.24); overflow: hidden; }
.market-listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.market-listing-card:hover .market-listing-card__media img { transform: scale(1.025); }
.market-listing-card__placeholder, .market-gallery__empty { width: 100%; height: 100%; display: grid; place-items: center; color: #5f6068; font-size: 2.5rem; }
.market-pill { display: inline-flex; align-items: center; width: fit-content; padding: .28rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.market-pill--intent { color: #090909; background: #ffdf00; }
.market-pill--neutral { color: #d8d8dc; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.market-pill--status { color: #fff; background: #303038; }
.market-listing-card__media .market-pill--intent { position: absolute; left: .75rem; top: .75rem; }
.market-listing-card__media .market-pill--status { position: absolute; right: .75rem; top: .75rem; }
.market-listing-card__body { padding: .85rem; }
.market-listing-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.market-listing-card__heading h2 { min-width: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-price { color: #ffdf00; white-space: nowrap; }
.market-listing-card__body > p { min-height: 38px; margin: .55rem 0; color: var(--market-muted); font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.market-listing-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.market-listing-card__meta span { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .45rem; color: #c9c9ce; background: rgba(0,0,0,.24); border-radius: 7px; font-size: .72rem; }
.market-listing-card__meta i { color: #ffdf00; }
.market-listing-card__seller { display: flex; justify-content: space-between; gap: .5rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.08); color: #85858e; font-size: .7rem; }
.market-pagination { margin-top: 1.5rem; }
.market-pagination .pagination { margin-bottom: 0; }
.market-empty { grid-column: 1/-1; padding: 3rem; text-align: center; }
.market-empty > i { color: #ffdf00; font-size: 2rem; }

.market-back { display: inline-flex; gap: .4rem; margin-bottom: 1rem; color: #c7c7cc !important; text-decoration: none; }
.market-form-page { max-width: 980px; margin-inline: auto; }
.market-form { padding: clamp(1rem, 3vw, 2rem); }
.market-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.market-field--wide { grid-column: 1/-1; }
.market-field label, .market-review-form > label { display: block; margin-bottom: .35rem; font-weight: 700; }
.market-field label span { color: #ffdf00; }
.market-field small { display: block; margin-top: .35rem; color: #898992; }
.market-field__error, .market-form-errors, .errorlist { color: #ff8d92; font-size: .82rem; list-style: none; padding: 0; }
.market-image-upload { display: flex; align-items: center; gap: 16px; }
.market-image-upload__preview { width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; overflow: hidden; padding: 10px; border-radius: 14px; color: #ffdf00; font-size: 2rem; }
.market-image-upload__preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.market-image-upload__controls { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.market-image-upload__controls input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.market-image-upload__button { display: inline-flex !important; align-items: center; gap: 8px; width: auto; min-height: 42px; margin: 0 !important; padding: 0 16px; border: 1px dashed rgba(255,223,0,.35); border-radius: 14px; color: rgba(255,255,255,.86); background: rgba(255,223,0,.03); font-weight: 800; cursor: pointer; }
.market-image-upload__button:hover { color: #ffdf00; border-color: rgba(255,223,0,.65); background: rgba(255,223,0,.08); }
.market-image-upload__status { color: #898992; font-size: .78rem; }
.market-checkbox { width: 18px; height: 18px; margin-right: .45rem; accent-color: #ffdf00; }
.market-safety-note { display: flex; gap: .8rem; margin-top: 1rem; padding: 1rem; }
.market-safety-note > i { color: #ffdf00; font-size: 1.2rem; }
.market-safety-note span { display: block; color: var(--market-muted); font-size: .86rem; }
.market-form__actions { margin-top: 1rem; }
.market-form-expiry { margin: .9rem 0 0; color: #a8a8b2; font-size: .82rem; }
.market-form-expiry i, .market-detail-expiry i { color: #ffdf00; }

.market-photo-manager { margin-bottom: 1rem; padding: 1rem; }
.market-photo-manager__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.market-photo-manager__head h2 { margin-top: .25rem; font-size: 1.2rem; }
.market-photo-manager__head > span { color: #9999a2; font-size: .8rem; }
.market-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; }
.market-photo-item { position: relative; overflow: hidden; padding: .5rem; }
.market-photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.market-photo-item > .market-pill { position: absolute; top: .8rem; left: .8rem; }
.market-photo-item__actions { display: grid; grid-template-columns: repeat(3,1fr); gap: .35rem; margin-top: .45rem; }
.market-icon-btn { width: 100%; height: 34px; display: grid; place-items: center; color: #f4f4f6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11); border-radius: 7px; }
.market-icon-btn:hover:not(:disabled) { color: #ffdf00; border-color: rgba(255,223,0,.45); }
.market-icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.market-icon-btn--danger { color: #ff8d92; }

.market-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 1rem; }
.market-gallery { overflow: hidden; padding: .8rem; }
.market-gallery:focus { outline: none; }
.market-gallery:focus-visible { border-color: rgba(255,223,0,.55); box-shadow: 0 0 0 3px rgba(255,223,0,.08); }
.market-gallery__stage { position: relative; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.24); }
.market-gallery__cover { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: rgba(0,0,0,.24); border-radius: 10px; }
.market-gallery__empty { min-height: 420px; background: rgba(0,0,0,.24); border-radius: 10px; }
.market-gallery__nav { position: absolute; z-index: 2; top: 50%; width: 42px; height: 48px; display: grid; place-items: center; transform: translateY(-50%); color: #fff; background: rgba(0,0,0,.58); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; backdrop-filter: blur(6px); }
.market-gallery__nav:hover, .market-gallery__nav:focus-visible { color: #ffdf00; border-color: rgba(255,223,0,.55); outline: none; }
.market-gallery__nav--prev { left: .75rem; }
.market-gallery__nav--next { right: .75rem; }
.market-gallery__counter { position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .55rem; color: #fff; background: rgba(0,0,0,.68); border-radius: 999px; font-size: .72rem; font-weight: 750; }
.market-gallery__thumbs { display: grid; grid-template-columns: repeat(6,1fr); gap: .55rem; margin-top: .65rem; overflow-x: auto; scrollbar-color: #ffdf00 #111; }
.market-gallery__thumb { min-width: 0; padding: 0; overflow: hidden; background: rgba(0,0,0,.24); border: 2px solid transparent; border-radius: 9px; opacity: .68; cursor: pointer; transition: opacity .15s ease, border-color .15s ease, transform .15s ease; }
.market-gallery__thumb:hover { opacity: 1; transform: translateY(-1px); }
.market-gallery__thumb.is-active { opacity: 1; border-color: #ffdf00; }
.market-gallery__thumb:focus-visible { outline: 2px solid #ffdf00; outline-offset: 2px; }
.market-gallery__thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.market-detail-summary { padding: 1.2rem; }
.market-detail-summary__top { display: flex; gap: .4rem; margin-bottom: 1rem; }
.market-detail-summary h1 { font-size: clamp(1.6rem,3vw,2.2rem); }
.market-detail-price { margin: .55rem 0 1rem; color: #ffdf00; font-size: 1.65rem; font-weight: 800; }
.market-detail-expiry { margin: -.55rem 0 1rem; color: #9999a2; font-size: .78rem; }
.market-bump-available { margin: .8rem 0; }
.market-detail-facts { display: grid; padding: .85rem; gap: .7rem; }
.market-detail-facts span { display: grid; grid-template-columns: 18px 90px 1fr; align-items: center; gap: .35rem; font-size: .82rem; }
.market-detail-facts i { color: #ffdf00; }
.market-detail-facts b { color: #aaaab2; }
.market-seller { display: flex; gap: .75rem; margin: .8rem 0; padding: .8rem; }
.market-seller img { width: 50px; height: 50px; object-fit: cover; border-radius: 10px; }
.market-seller small, .market-seller span { display: block; color: #9a9aa3; font-size: .75rem; }
.market-seller a { display: block; color: #fff; font-weight: 750; text-decoration: none; }
.market-seller span i { color: #ffdf00; }
.market-user-name { display: inline-flex !important; align-items: center; flex-wrap: wrap; gap: .28rem; }
.market-user-badges { display: inline-flex; align-items: center; gap: .22rem; }
.market-user-badge { font-size: .9em; line-height: 1; }
.market-user-badge--famous { color: #ffdf00 !important; }
.market-user-badge--streamer { color: #9146ff !important; }
.market-user-badge--youtube { color: #ff3131 !important; }
.market-owner-actions .market-btn { width: 100%; }
.market-action-note { min-width: 100%; padding: .4rem 0; color: #9999a2; font-size: .74rem; }
.market-action-note i { color: #ffdf00; }
.market-detail-lower { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 1rem; margin-top: 1rem; }
.market-description, .market-offer-panel { padding: 1.25rem; }
.market-description h2, .market-offer-panel h2 { margin: .3rem 0 1rem; }
.market-description > p { color: #c6c6cb; line-height: 1.7; }
.market-exchange { margin-top: 1rem; padding: 1rem; }
.market-exchange strong { color: #ffdf00; }
.market-exchange p { margin: .35rem 0 0; }
.market-offer { margin-bottom: .6rem; padding: .85rem; }
.market-offer > div { display: flex; justify-content: space-between; }
.market-offer span, .market-offer p { color: var(--market-muted); font-size: .82rem; }
.market-offer__actions { display: flex; gap: .45rem; margin-top: .6rem; }
.market-offer__actions > * { flex: 1; }
.market-offer__actions .market-btn { width: 100%; }
.market-compact-form p { margin-bottom: .7rem; }
.market-compact-form label { display: block; margin-bottom: .25rem; font-size: .8rem; font-weight: 700; }
.market-compact-field { margin-bottom: .7rem; }
.market-compact-field small { display: block; margin-top: .3rem; color: #898992; }
.market-reputation-link { color: #9a9aa3 !important; font-size: .75rem; text-decoration: none; }
.market-reputation-link:hover { color: #ffdf00 !important; }

.market-deals { display: grid; gap: .8rem; }
.market-deal { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.market-deal h2 { margin-top: .5rem; font-size: 1.1rem; }
.market-deal h2 a { text-decoration: none; }
.market-deal p { margin: .25rem 0 0; color: var(--market-muted); }
.market-review-form { padding: clamp(1.1rem,3vw,2rem); }
.market-review-form h1 { margin: .35rem 0; }
.market-review-form > p { color: var(--market-muted); }
.market-rating { margin: 1rem 0; }
.market-rating legend { font-size: .85rem; font-weight: 700; }
.market-rating > div { display: flex; gap: .4rem; }
.market-rating > div > div label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(0,0,0,.24); cursor: pointer; }
.market-rating input { accent-color: #ffdf00; }
.market-review-form textarea { margin-bottom: 1rem; }

.market-confirm-modal .modal-content { color: #f5f5f7; background: #171718; border-color: rgba(255,255,255,.14); }
.market-confirm-modal .modal-header, .market-confirm-modal .modal-footer { border-color: rgba(255,255,255,.09); }
.market-confirm-modal .modal-body p { color: #b7b7bf; }
.market-confirm-modal label { display: block; margin-bottom: .4rem; font-weight: 700; }

.market-profile-reputation { margin-top: 1rem; padding: 1rem; }
.profile-gamification-row { padding-top: 1rem; }
.market-profile-reputation__head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.market-profile-reputation__head h5 { margin-top: .2rem; }
.market-profile-reputation__score { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 .4rem; text-align: right; }
.market-profile-reputation__score i { grid-row: 1/3; color: #ffdf00; font-size: 1.5rem; }
.market-profile-reputation__score strong { font-size: 1.4rem; }
.market-profile-reputation__score span { color: #9999a1; font-size: .72rem; }
.market-profile-reputation__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-top: .8rem; }
.market-profile-reputation__stats > div { display: flex; flex-direction: column; padding: .75rem; }
.market-profile-reputation__stats span, .market-profile-reputation__stats small { color: #92929b; font-size: .72rem; }
.market-profile-reputation__stats strong { margin: .15rem 0; font-size: 1.15rem; }
.market-profile-reputation__stats i, .market-profile-reputation__reviews i { color: #ffdf00; }
.market-profile-reputation__reviews { display: grid; gap: .55rem; margin-top: .65rem; }
.market-profile-reputation__reviews article { padding: .75rem; }
.market-profile-reputation__reviews article > div { display: flex; justify-content: space-between; gap: .5rem; }
.market-profile-reputation__reviews span, .market-profile-reputation__reviews small { color: #92929b; font-size: .72rem; }
.market-profile-reputation__reviews p { margin: .4rem 0; color: #d0d0d4; }
.market-review-report { margin-left: auto; color: #9999a2 !important; font-size: .7rem; text-decoration: none; }
.market-review-report:hover { color: #ff8d92 !important; }
.market-reputation-all { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; color: #ffdf00 !important; font-size: .8rem; text-decoration: none; }
.market-reputation-summary { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 1rem; padding: 1rem; }
.market-reputation-summary > div { display: flex; flex-direction: column; padding: .5rem 1rem; border-right: 1px solid rgba(255,255,255,.08); }
.market-reputation-summary > div:last-child { border-right: 0; }
.market-reputation-summary strong { font-size: 1.5rem; }
.market-reputation-summary span { color: #9999a2; font-size: .75rem; }
.market-reputation-summary i, .market-reputation-review i { color: #ffdf00; }
.market-role-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.market-role-filter a { padding: .45rem .7rem; color: #aaaab2 !important; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: .78rem; text-decoration: none; }
.market-role-filter a[aria-current="page"] { color: #090909 !important; background: #ffdf00; border-color: #ffdf00; }
.market-role-filter a span { margin-left: .25rem; opacity: .72; }
.market-reputation-list { display: grid; gap: .7rem; }
.market-reputation-review { padding: 1rem; }
.market-reputation-review > div, .market-reputation-review footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.market-reputation-review > div span, .market-reputation-review footer { color: #92929b; font-size: .75rem; }
.market-reputation-review p { margin: .75rem 0; color: #d0d0d4; }
.market-reputation-review footer a { color: #aaaab2 !important; }

.market-safety-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; margin-top: .75rem; }
.market-text-action { padding: 0; color: #a8a8b2 !important; background: none; border: 0; font-size: .75rem; text-decoration: none; }
.market-text-action:hover { color: #ffdf00 !important; }
.market-text-action--danger:hover { color: #ff8d92 !important; }
.market-reported-content { margin: 1rem 0; padding: 1rem; color: #d2d2d7; }

.market-safety-hero { padding: clamp(1.4rem,4vw,3rem); }
.market-safety-hero h1 { margin: .35rem 0; font-size: clamp(2rem,5vw,3.3rem); }
.market-safety-hero p { max-width: 760px; margin: 0; color: #aaaab2; }
.market-safety-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.market-safety-grid article { padding: 1.25rem; }
.market-safety-grid article > i { color: #ffdf00; font-size: 1.5rem; }
.market-safety-grid h2 { margin: .45rem 0; font-size: 1.15rem; }
.market-safety-grid ul { margin: .6rem 0 0; padding-left: 1.15rem; color: #b6b6be; }
.market-safety-grid li + li { margin-top: .35rem; }

.market-mod-section { margin-bottom: 1rem; padding: 1rem; }
.market-mod-section > h2 { display: flex; justify-content: space-between; margin-bottom: .8rem; font-size: 1.15rem; }
.market-mod-section > h2 span { color: #ffdf00; }
.market-mod-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 1rem; margin-top: .65rem; padding: .85rem; }
.market-mod-item span { display: block; color: #92929b; font-size: .76rem; }
.market-mod-item p { margin: .35rem 0 0; color: #c6c6cc; }
.market-mod-actions { display: grid; gap: .45rem; }
.market-mod-actions form { display: flex; gap: .4rem; }
.market-mod-actions .market-input { min-width: 0; }
.market-mod-actions .market-btn { flex: 0 0 auto; }
.market-audit-list > div { padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.market-audit-list span { display: block; color: #92929b; font-size: .72rem; }
.market-audit-list p { margin: .25rem 0 0; color: #c6c6cc; }

.pm-marketplace-context { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; margin: .65rem .8rem 0; padding: .7rem .85rem; color: #f5f5f7 !important; background: rgba(0,0,0,.24); border: 1px solid rgba(255,223,0,.2); border-radius: 10px; text-decoration: none; }
.pm-marketplace-context span, .pm-marketplace-context small { color: #aaaab2; font-size: .72rem; }
.pm-marketplace-context span i, .pm-marketplace-context small i { color: #ffdf00; }

@media (max-width: 1500px) {
  .market-listing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .market-filter { grid-template-columns: repeat(3,1fr); }
  .market-filter__search { grid-column: span 2; }
  .market-listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .market-page { padding-top: 1rem; }
  .market-navigation {
    display: flex;
    gap: 8px;
    padding: 0 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .market-navigation a {
    min-width: 110px;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: .82rem;
    scroll-snap-align: start;
  }
  .market-hero, .market-section-heading, .market-deal { align-items: stretch; flex-direction: column; }
  .market-hero__actions > * { flex: 1; }
  .market-filter { grid-template-columns: 1fr 1fr; }
  .market-filter__search { grid-column: 1/-1; }
  .market-detail-grid, .market-detail-lower { grid-template-columns: 1fr; }
  .market-form-grid { grid-template-columns: 1fr; }
  .market-field { grid-column: 1; }
  .market-profile-reputation__stats { grid-template-columns: 1fr; }
  .market-reputation-summary { grid-template-columns: repeat(2,1fr); }
  .market-reputation-summary > div:nth-child(2) { border-right: 0; }
  .market-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-mod-item { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .market-filter, .market-listing-grid { grid-template-columns: 1fr; }
  .market-filter > * { grid-column: 1; }
  .market-hero__actions, .market-owner-actions, .market-form__actions, .market-deal__actions { grid-template-columns: 1fr; }
  .market-profile-reputation__head { align-items: flex-start; flex-direction: column; }
  .market-profile-reputation__score { text-align: left; }
  .market-reputation-summary { grid-template-columns: 1fr; }
  .market-reputation-summary > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .market-photo-grid { grid-template-columns: 1fr; }
  .market-safety-grid { grid-template-columns: 1fr; }
  .market-mod-actions form { align-items: stretch; flex-direction: column; }
}
