#market .market-search-line {margin:1.4rem 0 .85rem;}
.market-search-line label {display:block;margin-bottom:.45rem;}
#marketSearch {width:100%;max-width:100%;min-height:3rem;}
#marketActivityTabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;background:#191b19;border:1px solid #454942;padding:.25rem;}
#marketActivityTabs button {display:flex;align-items:center;gap:.48rem;justify-content:center;padding:.8rem .4rem;min-height:2.85rem;color:#d5d7ce;background:transparent;border:1px solid transparent;border-radius:2px;font-size:.9rem;line-height:1.2;font-weight:650;}
#marketActivityTabs button[aria-selected=true] {background:#30352b;color:#fff;border-color:#839367;}
#marketActivityTabs span {flex:none;min-width:1.55rem;text-align:center;padding:.15rem .28rem;background:#252924;border:1px solid #50564c;border-radius:4px;color:#e2e6d8;font:600 .76rem/1.15 system-ui;}
#marketActivityTabs [aria-selected=true] span {background:#d1ddbe;color:#222819;border-color:#d1ddbe;}
#marketActivityTabs button:focus-visible,.market-activity-card :is(a,button,summary):focus-visible {outline:2px solid #cedab8;outline-offset:2px;}
#market .market-core {margin-top:1rem;}
.market-feed-controls {display:flex;align-items:center;gap:.75rem 1.25rem;flex-wrap:wrap;}
.market-feed-controls p {margin:.2rem 0;}
#marketPanel {margin:1rem 0 1.7rem;}
#marketGrid .market-activity-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.75rem,1.7vw,1.35rem);}
.market-activity-card {display:flex;flex-direction:column;min-width:0;background:#191b19;border:1px solid #41453c;color:#f0f0ea;overflow-wrap:anywhere;}
.activity-photo,.activity-no-photo {position:relative;aspect-ratio:16/9;background:#242721;overflow:hidden;}
.activity-photo img {display:block;width:100%;height:100%;object-fit:cover;}
.activity-photo small {position:absolute;right:.45rem;bottom:.45rem;background:#121410e8;padding:.2rem .4rem;color:#edece6;}
.activity-no-photo {display:grid;place-content:center;color:#b4b6ae;}
.activity-body {display:flex;flex:1;align-items:flex-start;flex-direction:column;gap:.65rem;padding:clamp(.8rem,1.5vw,1.25rem);}
.activity-body h3,.activity-body p,.activity-body details {margin:0;}
.activity-body h3 {font-size:clamp(1.05rem,1.5vw,1.35rem);line-height:1.18;}
.activity-body h3 a {color:inherit;text-decoration:none;}
.activity-body h3 a:hover {text-decoration:underline;}
.activity-badges,.activity-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .65rem;}
.activity-kind,.activity-condition,.wanted-budget {border:1px solid #53594f;border-radius:3px;padding:.22rem .46rem;line-height:1.15;}
.activity-kind,.activity-condition {font-size:.77rem;font-weight:600;color:#d6dad1;}
.member-kind {color:#d0dfbd;border-color:#697853;}
.wanted-kind {color:#efd9a4;border-color:#847049;}
.activity-price {font-size:1.4rem;line-height:1.1;font-weight:750;}
.activity-price small {font-size:.71rem;font-weight:500;color:#c9cbc2;white-space:nowrap;}
.activity-body :is(.activity-place,.activity-seller,.activity-origin,.wanted-notes,.activity-source-details) {font-size:.9rem;color:#d1d3c8;line-height:1.45;}
.activity-body .activity-seller {font-weight:650;}
.activity-origin,.activity-distance {color:#c0c4b7;}
.market-feed-group + .market-feed-group {border-top:1px solid #66665b;margin-top:2rem;padding-top:1.3rem;}
#market .market-group-title {margin:0 0 .9rem;color:#f0f0ea;font:650 1.65rem/1.2 'Barlow Condensed',sans-serif;}
.market-group-title span {font-size:.85em;color:#bcc2b4;}
.market-wanted-board {display:grid;gap:.55rem;}
.market-wanted-board .wanted-card {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;align-items:center;gap:1.25rem;padding:1rem 1.25rem;border-left:3px solid #ad9864;background:#22231e;}
.wanted-summary h3 {margin:.5rem 0 0;font-size:1.12rem;line-height:1.3;}
.wanted-summary h3 a {color:inherit;}
.wanted-summary .wanted-kind {display:inline-block;color:#f1d399;border-color:#8d7142;background:#382e21;}
.wanted-profile-links,.wanted-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .7rem;}
.wanted-profile-links {margin-top:.4rem;font-size:.8rem;}
.wanted-profile-links a {text-decoration:underline;text-underline-offset:.15em;}
.wanted-terms {min-width:0;color:#d6d6cb;font-size:.9rem;line-height:1.45;}
.wanted-terms p {margin:.25rem 0 0;}
.wanted-budget {display:block;padding:0;border:0;color:#bcbcaf;font-weight:500;}
.wanted-budget span {color:#f1dfb6;font-size:1.04rem;font-weight:700;}
.wanted-notes {white-space:pre-line;}
.wanted-actions {justify-content:flex-end;}
.wanted-reply {min-height:44px;padding:.6rem .85rem;border:1px solid #9d8051;border-radius:3px;background:#382e21;color:#f2d6a3;font-weight:650;}
.wanted-reply:hover,.wanted-reply:focus-visible {border-color:#e5c483;color:#fff1cb;background:#463a28;}
.activity-actions {align-self:stretch;margin-top:auto;padding-top:.65rem;border-top:1px solid #3c4137;}
.activity-actions :is(a,button) {font-size:.83rem;text-underline-offset:2px;}
.activity-actions :is(.primary,.quiet) {display:inline-flex;align-items:center;min-height:2.55rem;padding:.5rem .7rem;}
.activity-source-details summary {cursor:pointer;}
.activity-source-details p {margin:.45rem 0;}
#marketMore {margin-top:1rem;}
#marketRadiusNote:empty {display:none;}
@media(max-width:920px) {#marketGrid .market-activity-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px) {#marketActivityTabs {grid-template-columns:repeat(2,minmax(0,1fr));}#marketActivityTabs button {justify-content:space-between;text-align:left;padding:.65rem .5rem;}#market .market-feed-controls {align-items:flex-start;}}
@media(max-width:560px) {#marketGrid .market-activity-grid {grid-template-columns:minmax(0,1fr);}}
#market .market-entry-actions {display:grid;justify-content:start;gap:.5rem;flex:0 1 28rem;}
.market-primary-actions,.market-account-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .7rem;}
#market .market-primary-actions .primary {justify-content:center;min-height:44px;padding:.8rem 1rem;font-size:.9rem;}
#market .market-account-actions :is(a,button) {display:inline-flex;align-items:center;min-height:44px;padding:.2rem 0;border:0;background:transparent;color:#d6d6cb;font:500 .85rem/1.3 Inter,sans-serif;text-decoration:underline;text-underline-offset:.2em;}
@media(max-width:850px){
  #market .market-hero {align-items:flex-start;flex-direction:column;}
  #market .market-entry-actions {flex-basis:auto;}
  .market-wanted-board .wanted-card {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:.5rem 1rem;}
  .wanted-actions {grid-column:1/-1;justify-content:flex-start;}
}
@media(max-width:560px){
  .market-wanted-board .wanted-card {grid-template-columns:minmax(0,1fr);gap:.65rem;padding:.9rem;}
  .market-primary-actions,.market-account-actions {column-gap:.8rem;}
}
.listing-condition-tags {display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:.25rem 0;}
.listing-condition-tags li,.seller-form .listing-condition-tags label {border:1px solid #53594f;border-radius:1rem;background:#20231e;color:#d6dad1;padding:.27rem .65rem;font-size:.8rem;line-height:1.3;}
.seller-form .listing-condition-tags label {display:inline-flex;align-items:center;gap:.4rem;margin:0;min-height:2.55rem;cursor:pointer;}
.seller-form .listing-condition-tags input {width:1rem;height:1rem;min-height:0;margin:0;accent-color:#cfddbb;}
.seller-form .listing-condition-tags label:has(:checked) {border-color:#a4b58c;color:#edf3e4;background:#333b2b;}
.seller-form .listing-condition-tags label:focus-within {outline:2px solid #cedab8;outline-offset:2px;}
#listingConditionDescription:empty {display:none;}

.machine-photo-frame {position:relative;isolation:isolate;width:100%;aspect-ratio:4/3;overflow:hidden;background:#111113;}
.machine-photo-frame img.photo-backdrop,.machine-photo-frame img.photo-subject {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;border-radius:0;}
.machine-photo-frame img.photo-backdrop {object-fit:cover;filter:blur(16px);opacity:.18;transform:scale(1.08);}
.machine-photo-frame img.photo-subject {object-fit:contain;object-position:center var(--photo-focus,50%);padding:clamp(6px,2.5%,12px);}
.machine-photo-frame[data-frame="fill"] img.photo-subject {object-fit:cover;padding:0;}
.machine-photo-frame small {position:absolute;bottom:.45rem;right:.45rem;padding:.2rem .45rem;background:#111113dc;color:#f0f0ea;}
.photo-framing-controls {max-width:25rem;margin:1rem 0;}
.photo-framing-controls [data-frame-preview] {margin-bottom:.65rem;}
.photo-thumbs button[aria-pressed=true] {border-color:#d5decc;}
.listing-trades,.listing-direct-contact {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .6rem;margin:.4rem 0;}
.listing-trades .trade-kind {color:#c9dcb7;border-color:#728465;}
.listing-contacts {margin-block:.8rem;}
.instagram-badge {display:inline-flex;align-items:center;max-width:100%;overflow-wrap:anywhere;border:1px solid #58584f;border-radius:.3rem;padding:.22rem .55rem;color:#e6e5dd;text-decoration:none;}
.instagram-badge:hover {text-decoration:underline;}
.wanted-kind {text-transform:uppercase;}
.wanted-budget {display:inline-flex;gap:.38rem;align-items:baseline;padding:.2rem .58rem;border:1px solid #786746;border-radius:1rem;}
.seller-photos > .machine-photo-frame:first-child {grid-column:1/-1;}
.machine-photo-frame img.photo-subject {background:transparent;}
