.ml-market {
    box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr); gap:1rem;
    width:100%; max-inline-size:72rem; margin-inline:auto; padding:clamp(.85rem,3vw,1.65rem);
    padding-block-end:6rem; color:var(--ml-text); overflow-wrap:anywhere;
}
.ml-market > * { min-width:0; }
.ml-market .market-heading { display:flex; gap:.75rem; align-items:center; padding-block:0 .65rem; border-bottom:1px solid var(--ml-border); }
.market-heading img { inline-size:3.25rem; block-size:3.25rem; object-fit:contain; border-radius:1rem; background:var(--ml-surface-alt); }
.ml-market .market-heading h1 { margin:0; font-family:inherit; font-size:clamp(1.4rem,4.8vw,2rem); font-weight:750; line-height:1.15; color:var(--ml-heading); }
.market-heading a { display:flex; align-items:center; gap:.35rem; margin-inline-start:auto; padding:.5rem; border-radius:.55rem; color:var(--ml-accent); font-weight:650; text-decoration:none; }
.market-heading a svg,.market-actions svg { width:1.15rem; height:1.15rem; flex:none; }
.ml-market .market-finder { display:grid; gap:.85rem; padding:1rem; margin:0; border:1px solid var(--ml-border); border-radius:1rem; background:var(--ml-surface); }
.market-fields { display:grid; gap:.7rem; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
.market-wide { grid-column:1/-1; }
.ml-market .market-fields label { display:grid; gap:.3rem; min-width:0; font-size:.85rem; color:var(--ml-text-muted); font-weight:650; }
.ml-market .market-fields :is(select,input) { width:100%; min-width:0; min-height:2.75rem; box-sizing:border-box; font:inherit; font-size:.95rem; color:var(--ml-text); border:1px solid var(--ml-border-strong,var(--ml-border)); border-radius:.65rem; padding:.5rem; background:var(--ml-surface); }
.market-actions { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.ml-market .market-actions button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:2.75rem; padding:.55rem .85rem; border:0; border-radius:.65rem; background:transparent; color:var(--ml-text); font:inherit; font-weight:650; cursor:pointer; }
.ml-market .market-actions [type=submit],.ml-market .market-operation button[aria-pressed=true]{background:#11634d;color:white;}
.ml-market .market-actions button:disabled {opacity:.55;}
.ml-market .market-operation { display:flex; gap:.3rem; min-width:0; padding:.25rem; border:0; margin:0; border-radius:.8rem; background:var(--ml-surface-alt); }
.ml-market .market-operation button {flex:1; border:0; border-radius:.6rem; min-height:2.65rem; font:inherit; font-weight:650; color:var(--ml-text); background:transparent;cursor:pointer;}
.ml-market h2 {margin:.2rem 0; font-size:1.16rem; color:var(--ml-heading);}
.market-grid,.market-offices {display:grid; gap:.8rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));}
.market-listing,.market-store { display:flex; flex-direction:column; min-width:0; overflow:hidden; text-decoration:none; color:var(--ml-text); border:1px solid var(--ml-border); border-radius:1rem; background:var(--ml-surface); }
.market-listing .market-photo {width:100%; aspect-ratio:16/9; object-fit:cover;}
.market-caption {display:grid;gap:.28rem;padding:.85rem 1rem;}
.market-caption strong,.market-store strong {color:var(--ml-heading);font-size:1.1rem;line-height:1.25;}
.market-caption b {font-size:1.04rem;color:var(--ml-text);}
.market-caption small,.market-store small {color:var(--ml-text-muted);}
.market-badge {justify-self:start;width:fit-content;border-radius:1rem;background:#ddf7e6;color:#125939;font-size:.78rem;padding:.16rem .55rem;}
.market-store {flex-direction:row;align-items:center;padding:.85rem;gap:.8rem;}
.market-store .market-logo,.market-store > img {flex:none;width:3rem;height:3rem;object-fit:contain;border-radius:.7rem;}
.market-store div {display:grid;gap:.25rem;}
.ml-market a:focus-visible,.ml-market button:focus-visible {outline:3px solid var(--ml-accent);outline-offset:2px;}
.ml-market .rail .market-listing { flex:0 0 min(85%,24rem); scroll-snap-align:start;}
@media(min-width:48rem){.market-fields {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:21rem){.market-fields{grid-template-columns:minmax(0,1fr);}.market-heading a{font-size:.8rem;}}
