/* Compact catalog controls and cards; detail dialogs retain their full content. */
body.mm-ui.market-page .market-categories{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-bottom:8px;padding-bottom:4px;scrollbar-width:none}
body.mm-ui.market-page .market-categories::-webkit-scrollbar{display:none}
body.mm-ui.market-page .market-categories button{flex:none;min-height:40px;padding:8px 12px;white-space:nowrap}
body.mm-ui.market-page .market-heading{margin-bottom:12px}
body.mm-ui.market-page .market-controls{position:relative;min-height:44px}
body.mm-ui.market-page #marketFilterPanel{margin:0;border:0;border-radius:0;background:transparent}
body.mm-ui.market-page #marketFilterPanel>summary{display:flex;align-items:center;gap:10px;width:max-content;min-height:44px;padding:8px 0;padding-right:0!important;white-space:nowrap;font-size:14px;font-weight:600;list-style:none}
body.mm-ui.market-page #marketFilterPanel>summary::after{content:'';position:static;width:16px;height:16px;border:0;transform:none;margin:0}
body.mm-ui.market-page #marketFilterPanel[open]>summary::after{transform:rotate(180deg)}
body.mm-ui.market-page #marketFilterPanel>summary::-webkit-details-marker{display:none}
body.mm-ui.market-page #marketFilterPanel>form{margin:4px 0 8px;padding:12px;border:1px solid var(--line);border-radius:10px}
body.mm-ui.market-page #marketSort{position:absolute;right:0;top:0;width:136px;min-height:44px;border:0;border-radius:6px;background-color:transparent;padding:8px 24px 8px 4px;font-size:14px!important;color:var(--ink);cursor:pointer}
body.mm-ui.market-page .market-results{padding:0 0 10px;font-size:12px;line-height:1.5}
body.mm-ui.market-page .market-card{position:relative;align-self:stretch}
body.mm-ui.market-page .market-card-link{height:100%;display:flex;flex-direction:column;color:var(--ink)}
body.mm-ui.market-page .market-card .product-picture{width:100%;aspect-ratio:1.35;border-radius:0;flex:none}
body.mm-ui.market-page .product-info{padding:10px 12px 12px;min-width:0;width:100%;box-sizing:border-box}
body.mm-ui.market-page .market-card .product-price{font-size:21px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}
body.mm-ui.market-page .market-card h2{font-size:15px;line-height:1.35;margin:0 0 6px;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.mm-ui.market-page .market-card .product-meta{font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 6px}
body.mm-ui.market-page .product-tags{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;font-size:11px;line-height:1.4}
body.mm-ui.market-page .market-card .product-kind{font-size:11px;font-weight:600}
body.mm-ui.market-page .market-card .product-condition{font-size:11px;line-height:1.4;margin:0;padding:3px 5px;border-radius:4px}
body.mm-ui.market-page .market-card .share-button{position:absolute;right:6px;top:6px;z-index:2;width:36px;height:36px;min-height:36px;padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #d4dfd5;border-radius:50%;background:#fffefaf2;color:#245a48;box-shadow:none}
body.mm-ui.market-page .market-card .share-button span{display:none}
body.mm-ui.market-page .market-card .share-button svg{width:18px;height:18px;flex:none}
body.mm-ui.market-page .market-card .product-badge{top:8px;left:8px;max-width:calc(100% - 56px);font-size:10px;padding:3px 5px}
body.mm-ui.market-page .market-card .share-button:hover{background:#eaf0dc}
body.mm-ui.market-page .market-card :focus-visible{outline:2px solid #245a48;outline-offset:-3px}
@media(max-width:760px){body.mm-ui.market-page .market-grid{gap:10px}body.mm-ui.market-page .product-info{padding:9px 9px 10px}body.mm-ui.market-page .market-card .product-price{font-size:19px}body.mm-ui.market-page .market-card h2{font-size:14px}}
