/* Market preview inherits the legacy homepage tokens without restyling its dialogs. */
#marketSidebarCard{--market-action:var(--accent2);--market-soft:var(--lilac);--market-price:var(--good);min-width:0;overflow:hidden;letter-spacing:0}
#marketSidebarCard .ms-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:8px;background:var(--market-soft);font-size:23px;margin-bottom:10px}
#marketSidebarCard .ms-kicker{font-size:10px;font-weight:900;color:var(--market-action)}
#marketSidebarCard .side-title{font-size:17px;letter-spacing:0;margin:5px 0 10px;line-height:1.4}
#marketSidebarCard .ms-intro{font-size:12px;color:var(--muted);margin:0 0 14px;line-height:1.7}
#marketSidebarCard .ms-product{display:block;width:100%;border:0;padding:0;text-align:left;color:var(--ink);background:transparent}
#marketSidebarCard .ms-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:var(--market-soft);border-radius:8px}
#marketSidebarCard .ms-placeholder{display:grid;place-items:center;font-size:38px}
#marketSidebarCard .ms-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.5;min-height:45px;margin:10px 0 5px;font-weight:850}
#marketSidebarCard .ms-price{display:block;font-size:20px;font-weight:900;color:var(--market-price);line-height:1.5}
#marketSidebarCard .ms-meta{font-size:11px;color:var(--muted);margin:6px 0;min-height:36px;overflow-wrap:anywhere;line-height:1.6}
#marketSidebarCard .ms-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0;color:var(--muted);font-size:11px}
#marketSidebarCard .ms-pager .iconbtn{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);flex-shrink:0}
#marketSidebarCard .ms-pager .iconbtn:disabled{opacity:.35;cursor:default}
#marketSidebarCard .ms-actions{display:grid;gap:8px}
#marketSidebarCard .ms-actions .btn{width:100%;min-height:44px;white-space:normal;letter-spacing:0}
#marketSidebarCard .ms-empty{font-size:12px;color:var(--muted);margin:10px 0 16px;line-height:1.6}
#marketSidebarCard .ms-empty strong{display:block;font-size:14px;color:var(--ink);margin-bottom:5px}
#marketSidebarCard .ms-note{font-size:10px;color:var(--muted);line-height:1.6;margin:12px 0 0}
#marketSidebarCard .ms-product:focus-visible{outline:2px solid var(--market-action);outline-offset:4px;border-radius:8px}
@media(prefers-reduced-motion:reduce){#marketSidebarCard .btn{transition:none}}