.market-home-open{display:flex;width:max-content;margin-bottom:12px}
.market-home-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);overflow:auto}
.market-home-dialog::backdrop{background:#20272070}
.market-home-dialog header,.market-home-dialog footer,.market-home-count{display:flex;justify-content:space-between;align-items:center;gap:16px}
.market-home-dialog h2{font-size:22px;margin:0}.market-home-dialog p{font-size:13px;color:var(--muted)}
.market-home-count{margin:20px 0 12px;font-size:14px}.market-home-count span{color:var(--teal)}
.market-home-dialog ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;list-style:none;margin:0 0 20px}
.market-home-dialog li{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:166px;padding:10px;background:var(--bg,#f6f7f4);border:1px solid var(--line);border-radius:6px;text-align:center;font-size:13px}
.market-home-dialog li>img{width:100%;height:70px;object-fit:contain}.market-home-dialog li>strong{overflow-wrap:anywhere}.market-home-dialog li>div{display:flex;gap:4px;margin-top:auto}
.market-home-dialog li button{width:30px;height:30px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);display:grid;place-items:center;padding:0}
.market-home-dialog li svg{width:15px;height:15px}.market-home-filters{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin-bottom:12px}
.market-home-filters label{display:grid;gap:6px;font-size:12px}.market-home-filters input,.market-home-filters select{width:100%;min-width:0;height:40px;font-size:14px;box-sizing:border-box}
.market-home-dialog [data-home-pick-list]{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:300px;overflow:auto;padding:2px}
.market-home-option{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:6px;cursor:pointer;min-width:0}
.market-home-option:has(input:checked){border-color:var(--teal);background:#f3f6ef}.market-home-option:has(input:disabled){opacity:.55}
.market-home-option input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;margin:0!important;flex:none;accent-color:var(--teal)}
.market-home-option img{width:42px;height:48px;object-fit:contain;flex:none}.market-home-option span{min-width:0;display:grid;gap:4px}.market-home-option strong{font-size:13px;overflow-wrap:anywhere}.market-home-option small{font-size:11px;color:var(--muted)}
.market-home-dialog footer{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.market-home-dialog footer p{flex:1}.market-home-dialog button:disabled{opacity:.5;cursor:default}
@media(max-width:540px){.market-home-dialog{padding:16px}.market-home-dialog li{padding:6px;font-size:11px}.market-home-dialog li>div{gap:1px}.market-home-dialog li button{width:24px;height:26px}.market-home-dialog [data-home-pick-list]{grid-template-columns:1fr}.market-home-filters{grid-template-columns:1fr}.market-home-dialog footer{flex-wrap:wrap}}
