/* Private marketplace chat and meeting cards, shared across device sizes. */
.mm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#mmFilterStrip,.mm-contact-dock,.mm-card-chat{display:none}
.mm-thread{min-width:0;max-width:900px;margin:auto}
.mm-chat-header{display:flex;align-items:center;gap:10px;min-width:0}
.mm-chat-header h2{flex:1;min-width:0;overflow-wrap:anywhere;font-size:20px;margin:0}
.mm-chat-header button{flex-shrink:0;min-height:44px}
.mm-chat-header>.text-button{max-width:110px;white-space:normal}
.mm-chat-context{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:10px;margin:12px 0;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--theme-raised,#f3f6f9);text-align:left;font:inherit}
.mm-chat-context img{width:48px;height:48px;object-fit:cover;border-radius:8px}
.mm-chat-context>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.mm-chat-context strong,.mm-chat-context small{display:block}
.mm-thread .thread-messages{max-height:45dvh;overflow:auto;overscroll-behavior:contain;padding:8px 2px;scrollbar-width:thin}
.mm-thread .thread-message{max-width:88%;overflow-wrap:anywhere;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--theme-raised,#f3f6f9)}
.mm-thread .thread-message.mine{margin-left:auto;background:var(--pale,#e7f4fc)}
.mm-thread .thread-message p{white-space:pre-wrap;line-height:1.45;margin:5px 0}
.mm-thread .thread-message small{font-size:11px;color:var(--muted)}
.mm-quick-replies{display:flex;gap:6px;overflow-x:auto;padding:8px 0;scrollbar-width:thin}
.mm-quick-replies button{flex-shrink:0;min-height:44px;padding:8px 12px;background:var(--theme-surface,#fff);border:1px solid var(--line);border-radius:22px;color:var(--ink);font:inherit;font-size:14px}
.mm-composer{display:flex;align-items:end;gap:8px;margin:8px 0}
.mm-composer textarea{flex:1;min-width:0;min-height:48px;max-height:160px;resize:vertical;font-size:16px;padding:10px;border-radius:14px;background:var(--theme-surface,#fff);color:var(--ink);border:1px solid var(--line)}
.mm-composer button{width:48px;min-height:48px;border-radius:14px;padding:10px;font-size:22px}
.mm-meeting{padding:14px;margin:10px 0;border:1px solid var(--line);border-radius:14px;background:var(--theme-raised,#f3f6f9);overflow-wrap:anywhere}
.mm-meeting p{margin:6px 0;line-height:1.5}
.mm-meeting-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.mm-meeting-actions button{min-height:44px;white-space:normal}
.mm-meeting.mm-confirmed{border-color:var(--blue,#0877ac)}
.mm-meeting-form{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--theme-raised,#f3f6f9)}
.mm-meeting-form label{display:grid;gap:6px;margin:12px 0;font-size:14px}
.mm-meeting-form input{width:100%;min-width:0;box-sizing:border-box;min-height:44px;font-size:16px}
.mm-meeting-form p{font-size:14px;line-height:1.5}
.mobile-nav>[hidden]{display:none!important}
@media(max-width:760px){
 body:not(.people-active):not(.account-workspace-mode) main{padding-top:0}
 .market-header.header{min-height:108px}
 .market-header .market-search-row{grid-template-columns:44px minmax(0,1fr);padding-bottom:10px}
 .market-header #languageToggle{font-size:12px}
 .market-header .search button{min-height:38px!important}
 .market-home{padding:0 12px!important;margin-top:0!important;gap:0!important}
 .market-feed{min-width:0}
 .market-discovery,#popularToday,#holidayBand,.holiday-decorations,.vr-tray,[data-market-block="hero"],[data-market-block="club"],[data-market-block="seller"],[data-market-block="trust"],#marketSide{display:none!important}
 #browseNavigation .cx-title{margin:8px 0!important}
 #browseNavigation .cx-title h1{font-size:20px!important;line-height:1.25}
 #browseNavigation .cx-title p,#browseNavigation .browse-breadcrumbs{display:none}
 #inlineFilters{display:none!important}
 .mm-filters-open #inlineFilters{display:block!important;padding:12px;margin:8px 0 12px;border-radius:12px;scroll-margin-top:12px}
 #mmFilterStrip{display:flex;gap:6px;padding:8px 0;min-width:0}
 #mmFilterStrip button{min-width:0;min-height:44px;flex:1;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit;font-size:14px;overflow-wrap:anywhere}
 #mmFilterStrip button:last-child{flex:0 0 auto;background:var(--theme-raised,#f3f6f9);font-weight:600}
 #filterResultsBar{gap:6px;margin:0 0 4px;flex-wrap:wrap}
 #filterResultsBar #browseStatus{font-size:13px;line-height:1.4;flex:1;min-width:80px}
 #filterResultsBar #sortButton{padding:8px;font-size:13px;max-width:115px;min-height:44px;height:auto}
 #filterResultsBar #marketMore{display:none}
 #filterResultsBar #marketViews{gap:0;flex-shrink:0}
 #filterResultsBar #marketViews button{width:44px;height:44px;padding:12px}
 #filterResultsBar .ul-view-label{display:none!important}
 .mobile-nav{gap:0!important;justify-content:space-around!important}
 .mobile-nav>:is(a,button):not([hidden]){flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:52px;padding:4px;color:var(--muted);text-decoration:none}
 .mobile-nav .ui-icon{width:22px;height:22px;display:block}
 .mobile-nav small{font-size:11px;line-height:1.25}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-card{grid-template-columns:88px minmax(0,1fr);gap:10px;min-height:112px;padding:10px 0}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-image{width:88px;height:88px;align-self:start;border-radius:10px}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-info{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto auto auto;gap:2px 3px;align-content:start}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-title{grid-column:1;grid-row:1;min-height:0;max-height:42px;font-size:15px;line-height:1.35;-webkit-line-clamp:2;font-weight:500;padding:0;margin:0}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-price{grid-column:1;grid-row:2;text-align:left;margin:0;font-size:17px;line-height:1.35;font-weight:700}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-price small{font-size:12px}
 #listingGrid.universal-listings.compact-catalog.list-view .market-facts{grid-column:1;grid-row:3;display:flex;flex-wrap:wrap;gap:4px 8px;max-height:35px;overflow:hidden}
 #listingGrid.universal-listings.compact-catalog .market-facts .ollo-fact,#listingGrid.universal-listings.compact-catalog .ollo-fact .ollo-fact-value{font-size:12px;line-height:1.35}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-meta{grid-column:1;grid-row:4;margin:0;padding:0;border:0;font-size:12px;gap:2px}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-meta time{display:none}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-info>.favorite-button{grid-column:2;grid-row:1;width:44px;height:44px;padding:12px;align-self:start}
 #listingGrid.universal-listings.compact-catalog .listing-info>.favorite-button svg{width:20px;height:20px}
 #listingGrid.universal-listings.compact-catalog.list-view .mm-card-chat{display:grid;grid-column:2;grid-row:3/span 2;width:44px;height:44px;place-items:center;padding:12px;background:none;border:0;color:var(--blue,#0877ac);border-radius:10px;align-self:end}
 .mm-card-chat svg{width:20px;height:20px}
 #listingGrid.universal-listings.compact-catalog.list-view .compare-toggle,#listingGrid.universal-listings.compact-catalog.list-view .club-listing-badge,#listingGrid.universal-listings.compact-catalog.list-view .cc-more,#listingGrid.universal-listings.compact-catalog.list-view .market-photo-next{display:none!important}
 #listingGrid.universal-listings.compact-catalog .market-photo-count{font-size:10px;background:var(--ul-overlay);color:var(--ul-muted)}
 #listingGrid.universal-listings.compact-catalog:not(.list-view){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #listingGrid.universal-listings.compact-catalog:not(.list-view) .listing-title{font-size:14px;min-height:38px;max-height:40px}
 #listingGrid.universal-listings.compact-catalog:not(.list-view) .listing-info{grid-template-columns:minmax(0,1fr) 44px}
 #listingGrid.universal-listings.compact-catalog:not(.list-view) .listing-info>.favorite-button{width:44px;height:44px;padding:12px}
 #listingGrid.universal-listings.compact-catalog:not(.list-view) .compare-toggle{width:44px;height:44px;padding:12px}
 #listingGrid.universal-listings.compact-catalog .market-photo-next{width:44px;height:44px;padding:12px;background:transparent;border:0}
 .ss-panel{max-height:calc(100dvh - 190px)!important;overflow:auto;overscroll-behavior:contain}
 .ss-option{min-height:52px!important}
 body.mm-detail-open .modal{width:100%!important;max-width:100%!important;max-height:100dvh!important;height:100dvh;border-radius:0!important;padding:16px 14px calc(90px + env(safe-area-inset-bottom,0px))!important;transform:none!important;overflow:auto}
 body.mm-detail-open #modalContent>h2{font-size:20px;line-height:1.3;padding-right:35px;overflow-wrap:anywhere}
 body.mm-detail-open .pg-detail{margin-inline:-14px;border-radius:0}
 body.mm-detail-open .pg-hero{height:clamp(230px,36dvh,350px);min-height:0;border-radius:0}
 body.mm-detail-open .pg-main-open img{object-fit:contain}
 body.mm-detail-open .pg-thumbs{display:none}
 body.mm-detail-open .catalog-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.mm-detail-open .catalog-details>div{display:block;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}
 body.mm-detail-open .catalog-details dt{font-size:12px}
 body.mm-detail-open .catalog-details dd{margin:4px 0 0;font-size:14px}
 .mm-contact-dock{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:var(--theme-surface,#fff);border-top:1px solid var(--line)}
 .mm-contact-dock>:is(a,button){flex:1;min-height:48px;justify-content:center;text-align:center;font-size:16px;display:flex;align-items:center}
 body.mm-chat-open #accountWorkspaceHeader .portal-topbar,body.mm-chat-open #accountWorkspaceHeader .portal-page-heading,body.mm-chat-open #accountWorkspaceNav{display:none!important}
 body.mm-chat-open .portal-main,body.mm-chat-open #accountWorkspaceMain{padding:12px!important}
 body.mm-chat-open .mm-chat-header h2{font-size:17px}
 body.mm-chat-open .mm-chat-header>.text-button{font-size:12px;max-width:95px}
 body.mm-chat-open .mm-thread .thread-messages{max-height:42dvh;min-height:100px}
 body.mm-chat-open .mm-composer{position:sticky;bottom:0;background:var(--theme-surface,#fff);padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px));z-index:2}
}
@media(prefers-reduced-motion:reduce){.mm-thread *,#mmFilterStrip *{scroll-behavior:auto!important}}

@media(max-width:760px){
 .market-feed{gap:0!important}
 body:not(.mm-parts) .market-part-actions{display:none!important}
 .market-header .toplinks a[href="#messages"]{display:none!important}
 #listingGrid.universal-listings.compact-catalog.list-view{margin-top:0!important}
 #listingGrid.universal-listings.compact-catalog.list-view .listing-card{padding-block:8px}
 #nearbyTools{margin:0!important;min-height:36px}
 body.mm-detail-open .modal-backdrop{padding:0!important}
}
