:root{--bg: #f3f1eb;--surface: rgba(255, 255, 255, .94);--surface-solid: #ffffff;--surface-soft: #f7f6f1;--ink: #12120f;--ink-soft: #363831;--muted: #74766d;--line: rgba(18, 18, 15, .1);--line-strong: rgba(18, 18, 15, .16);--accent: #334037;--accent-strong: #182119;--accent-soft: rgba(51, 64, 55, .1);--shadow-sm: 0 8px 22px rgba(19, 22, 18, .065);--shadow-md: 0 16px 42px rgba(19, 22, 18, .1);--shadow-lg: 0 28px 76px rgba(19, 22, 18, .14);--radius-sm: 10px;--radius-md: 16px;--radius-lg: 22px;--radius-xl: 28px;--shell: min(1240px, calc(100vw - 40px) )}html{scroll-padding-top:96px}body{min-height:100vh;background:radial-gradient(circle at 8% -8%,rgba(51,64,55,.09),transparent 34%),radial-gradient(circle at 92% 8%,rgba(18,18,15,.045),transparent 30%),linear-gradient(180deg,#fbfaf7 0%,var(--bg) 42%,#ece8df 100%)}body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(18,18,15,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(18,18,15,.025) 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(180deg,rgba(0,0,0,.28),transparent 56%);z-index:-1}.page-shell{width:var(--shell)}.surface-panel,.side-card,.listing-card,.category-card,.profile-listing-card,.favorite-card,.auth-card{border-color:var(--line);box-shadow:var(--shadow-sm)}.site-header{padding:8px 0;background:#f3f1ebc7!important;border-bottom:0!important;box-shadow:none!important;backdrop-filter:blur(24px)}.compact-header-row,.main-search-row.compact-header-row{min-height:62px!important;grid-template-columns:158px 120px minmax(260px,1fr) max-content!important;gap:8px!important;align-items:center;padding:8px!important;border:1px solid rgba(18,18,15,.095);border-radius:22px;background:#ffffffdb;box-shadow:0 14px 44px #12120f13;backdrop-filter:blur(28px)}.brand{height:44px;padding:0 10px;border-radius:15px;font-size:24px!important;line-height:1;letter-spacing:-.052em!important;color:var(--ink)}.brand:hover{background:#12120f09}.compact-header-row .category-trigger,.category-trigger{width:120px!important;min-height:44px!important;height:44px!important;border-radius:15px!important;background:#11120f;box-shadow:none!important;font-size:14px;letter-spacing:-.015em}.category-trigger img{width:17px!important;height:17px!important}.search,.compact-header-row .search,.compact-header-row.profile-search-row .search,.messages-search-row .search,.my-listings-search-row .search,.favorites-search-row .search,.create-listing-search-row .search{height:44px!important;min-height:44px;border-radius:15px!important;border-color:#12120f1f!important;background:#f8f7f2!important;box-shadow:inset 0 1px #ffffffe6!important}.search:focus-within{background:#fff!important;border-color:#12120f38!important;box-shadow:0 0 0 4px #33403714!important}.search input{font-size:15px;font-weight:560}.search__submit,.search .filter-button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:13px!important}.search__submit{background:#11120f!important}.filter-button:hover{background:#12120f0e!important}.header-actions{gap:6px!important}.header-icon-button,.publish-icon,.header-actions .auth-login,.header-actions .profile-chip{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:15px!important}.header-actions .auth-login{width:auto!important;padding:0 16px!important}.header-actions .profile-chip{width:auto!important;max-width:164px;padding:0 10px 0 6px!important;background:#fff!important;border:1px solid rgba(18,18,15,.12)!important;box-shadow:none!important}.header-actions .header-icon-button{background:#fff!important;border:1px solid rgba(18,18,15,.13)!important;box-shadow:none!important}.header-actions .header-icon-button:hover,.header-actions .header-icon-button.is-active{background:#f5f4ef!important;border-color:#12120f3d!important;box-shadow:0 10px 24px #12120f14!important}.publish-icon{background:#263229!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 10px 22px #26322933!important}.publish-icon.is-active,.publish-icon:hover{background:#11120f!important}.header-icon-button img{width:19px!important;height:19px!important}.header-actions .messages-link img{width:20px!important;height:20px!important}.page-grid{grid-template-columns:minmax(0,1fr) 274px;gap:18px;padding:18px 0 54px}.category-strip{position:relative;overflow:hidden;padding:24px;border:1px solid var(--line);border-radius:30px;background:radial-gradient(circle at 88% -16%,rgba(51,64,55,.13),transparent 38%),linear-gradient(145deg,#fffffff0,#f8f7f2db);box-shadow:var(--shadow-sm)}.category-strip__header{align-items:start;margin:0 0 18px!important}.category-strip__header h1{max-width:690px;font-size:clamp(34px,4vw,52px)!important;line-height:.98!important;letter-spacing:-.055em!important}.category-strip__header p{max-width:360px;padding-top:4px;font-size:14px;line-height:1.5}.category-grid{grid-template-columns:repeat(6,minmax(112px,1fr));gap:10px}.category-card{min-height:82px!important;border-radius:18px!important;padding:14px!important;background:#ffffffd6!important;box-shadow:none!important}.category-card:hover,.category-card.is-active{transform:translateY(-2px)!important;box-shadow:0 12px 28px #12120f14!important;border-color:#3340373d!important}.category-card__name{font-size:14px}.category-card__count{font-size:12px!important}.section-head{margin:24px 0 12px!important}.section-head h2{font-size:clamp(25px,2.2vw,32px)!important;letter-spacing:-.045em!important}.eyebrow{font-size:12px;letter-spacing:.01em;text-transform:uppercase}.sort-panel select{min-height:40px;padding:0 34px 0 13px;border-radius:14px;background:#fff}.category-listing-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}.category-listing-actions .sort-panel{flex:0 1 auto}.category-create-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:14px;background:#11120f;color:#fff;font-size:14px;font-weight:760;line-height:1;text-decoration:none;white-space:nowrap;border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 26px #12120f29;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.category-create-button:hover{transform:translateY(-1px);background:#273229;box-shadow:0 16px 32px #12120f33}.category-create-button img{width:16px;height:16px;filter:invert(1)}.listing-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important}.listing-card{border-radius:20px!important;background:#ffffffeb!important;box-shadow:none!important}.listing-card:hover{transform:translateY(-3px)!important;box-shadow:0 16px 34px #12120f1c!important;border-color:#33403738!important}.listing-card__media{aspect-ratio:1.12 / .82;background:linear-gradient(135deg,#f0eee7,#fff)}.favorite-button{top:10px!important;right:10px!important;width:34px!important;height:34px!important;border-radius:13px!important}.listing-card__body{padding:12px!important}.listing-card__title{min-height:34px!important;font-size:15px!important}.listing-card__price{margin-top:8px!important;font-size:19px!important}.listing-card__button{height:38px!important;border-radius:13px!important;background:#f1f0ea!important}.sidebar{top:96px!important;gap:12px!important}.side-card{border-radius:22px!important;padding:17px!important;background:#ffffffdb!important;box-shadow:none!important}.side-card--hero{background:linear-gradient(150deg,#fff,#f1f3ec)!important}.side-card--soft{background:linear-gradient(145deg,#11120f,#273229)!important}.side-card h3{font-size:17px!important}.side-card p,.steps-list li{font-size:13px!important}.secondary-button,.small-button,.primary-cta,.auth-login{border-radius:14px!important;letter-spacing:-.01em}.secondary-button{min-height:42px!important;padding:0 16px!important}.small-button{min-height:36px!important;padding:0 13px!important}.primary-cta{min-height:44px!important}.listing-form,.auth-card{padding:24px!important}.form-grid{gap:11px!important}.listing-form input,.listing-form select,.listing-form textarea,.auth-form input,.message-reply-box textarea{min-height:45px!important;border-radius:14px!important;background:#f8f7f2!important}.listing-form textarea,.message-reply-box textarea{min-height:94px!important}.listing-form input:focus,.listing-form select:focus,.listing-form textarea:focus,.auth-form input:focus,.message-reply-box textarea:focus{border-color:#33403761!important;box-shadow:0 0 0 4px #33403717!important}.empty-state,.favorites-loading,.favorites-empty,.messages-loading,.messages-empty,.messages-auth-required,.profile-loading,.profile-empty{border-radius:28px!important;background:#ffffffe0!important;box-shadow:var(--shadow-sm)!important}.create-listing-page,.favorites-page,.my-listings-page,.profile-page{padding:22px 0 58px!important}.create-hero,.favorites-hero,.my-listings-hero,.profile-hero{border-radius:28px!important;padding:clamp(22px,2.8vw,32px)!important;background:radial-gradient(circle at 100% -12%,rgba(51,64,55,.12),transparent 34%),#ffffffe6!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)!important}.create-hero h1,.favorites-hero h1,.my-listings-hero h1,.profile-hero h1,.messages-title-row h1,.message-thread h2,.auth-card h1{font-size:clamp(34px,4.2vw,58px)!important;line-height:.94!important;letter-spacing:-.06em!important}.create-hero p,.favorites-hero p,.my-listings-hero p,.profile-empty p,.profile-loading p,.auth-card__lead{line-height:1.52!important}.create-layout{grid-template-columns:minmax(0,1fr) 292px!important;gap:14px!important;margin-top:14px!important}.create-form,.create-aside{border-radius:26px!important}.create-aside{top:96px!important;padding:19px!important}.create-hero__steps span{min-height:38px!important;border-radius:13px!important;font-size:13px}.favorites-grid,.profile-listings{gap:12px!important}.favorite-card,.profile-listing-card{border-radius:22px!important;border:1px solid var(--line);background:#ffffffeb!important;box-shadow:none!important}.favorite-card__body,.profile-listing-card__body{padding:14px!important}.favorite-card h3,.profile-listing-card__body h3{font-size:18px!important}.favorite-card b,.profile-listing-card__body b{font-size:22px!important}.messages-page{width:min(1480px,calc(100vw - 40px))!important;padding:18px 0 58px!important}.messages-layout{grid-template-columns:minmax(300px,350px) minmax(0,1fr)!important;gap:14px!important;min-height:max(610px,calc(100svh - 150px))!important}.messages-sidebar,.message-thread{border-radius:26px!important;padding:20px!important;background:#ffffffe6!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)!important}.message-preview{border-radius:18px!important;padding:13px!important;background:#f8f7f2!important}.message-preview.is-active,.message-preview:hover{background:#fff!important}.message-bubble{border-radius:20px!important;padding:14px!important;box-shadow:none!important}.message-reply-box{border-radius:20px!important;padding:14px!important;background:#f8f7f2!important}.auth-layout{width:min(100vw - 32px,430px)!important;gap:18px!important}.auth-card{border-radius:26px!important;background:#ffffffeb!important}.site-footer{margin-top:0!important;background:#11120f!important}.site-footer__inner{padding:34px 0 22px!important}.site-footer__grid{gap:22px!important}.footer-brand{font-size:24px!important}.footer-brand img{width:36px!important;height:36px!important}.site-footer__lead,.footer-column a,.footer-column span{font-size:13px!important}@media(max-width:1180px){:root{--shell: min(100vw - 32px, 980px)}.compact-header-row,.main-search-row.compact-header-row{grid-template-columns:142px minmax(240px,1fr) max-content!important}.compact-header-row .category-trigger{display:none!important}.listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.page-grid{grid-template-columns:1fr!important}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))!important;position:static!important}.create-layout{grid-template-columns:1fr!important}.create-aside{position:static!important}}@media(max-width:820px){:root{--shell: min(100vw - 24px, 720px)}.compact-header-row,.main-search-row.compact-header-row{grid-template-columns:1fr max-content!important;padding:8px!important;gap:8px!important}.compact-header-row .brand{justify-content:flex-start}.compact-header-row .search{grid-column:1 / -1!important;grid-row:2!important}.category-strip{padding:20px!important}.category-strip__header{display:grid!important}.category-grid,.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sidebar,.messages-layout{grid-template-columns:1fr!important}}@media(max-width:560px){:root{--shell: calc(100vw - 20px) }.site-header{padding:6px 0}.compact-header-row,.main-search-row.compact-header-row{border-radius:18px}.brand{font-size:22px!important;padding-inline:6px}.header-actions{gap:4px!important}.header-icon-button,.publish-icon,.header-actions .auth-login,.header-actions .profile-chip{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:13px!important}.header-actions .auth-login{width:auto!important}.listing-grid,.category-grid,.favorites-grid,.profile-listings{grid-template-columns:1fr!important}.category-strip__header h1,.create-hero h1,.favorites-hero h1,.my-listings-hero h1,.profile-hero h1{font-size:34px!important}.section-head,.favorites-hero,.my-listings-hero,.create-hero{display:grid!important}.site-footer__grid{grid-template-columns:1fr!important}}.messages-page{height:calc(100svh - 126px)!important;min-height:620px!important;padding:28px 0 24px!important;overflow:hidden!important;align-items:stretch!important}.messages-page>section,.messages-layout{height:100%!important;min-height:0!important}.messages-layout{align-items:stretch!important;overflow:hidden!important}.messages-sidebar,.message-thread{height:100%!important;min-height:0!important;overflow:hidden!important}.messages-sidebar{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}.messages-list,.messages-empty-list{display:grid!important;gap:10px!important;align-content:start!important;align-items:start!important;grid-auto-rows:max-content!important;min-height:0!important;overflow-y:auto!important;padding-right:4px!important;overscroll-behavior:contain!important}.message-preview{height:auto!important;min-height:0!important;align-self:start!important;display:grid!important;grid-template-rows:auto auto auto!important}.message-preview__top,.message-preview__title,.message-preview p{min-height:0!important}.message-thread{max-height:100%!important;grid-template-rows:auto minmax(0,1fr) auto!important}.message-bubble-stack{min-height:0!important;max-height:100%!important;overflow-y:auto!important;align-content:start!important;overscroll-behavior:contain!important}@media(max-width:960px){.messages-page{height:auto!important;min-height:calc(100svh - 96px)!important;overflow:visible!important}.messages-page>section,.messages-layout{height:auto!important;min-height:0!important;overflow:visible!important}.messages-sidebar{height:auto!important;max-height:360px!important}.messages-list,.messages-empty-list{max-height:210px!important}.message-thread{height:calc(100svh - 118px)!important;min-height:560px!important}}@media(max-width:520px){.messages-sidebar{max-height:340px!important}.messages-list,.messages-empty-list{max-height:190px!important}.message-thread{height:calc(100svh - 104px)!important;min-height:520px!important}}@media(max-width:700px){.category-listing-actions{width:100%;justify-content:flex-start;align-items:stretch;display:grid;grid-template-columns:1fr;gap:8px;margin-left:0}.category-listing-actions .sort-panel{width:100%;justify-content:space-between}.category-listing-actions .sort-panel select,.category-create-button{width:100%}}@media(max-width:700px){body[data-category-page] .category-strip{display:none!important}body[data-category-page] .page-grid{padding-top:12px!important}body[data-category-page] .section-head{margin-top:10px!important}}.category-create-disabled{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:14px;border:1px solid rgba(20,20,18,.1);background:#ffffffb8;color:var(--muted);font-size:14px;font-weight:760;white-space:nowrap}@media(max-width:700px){.category-create-disabled{width:100%}}.profile-hero.profile-hero--slim{border-radius:22px!important;padding:14px 18px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:16px!important;align-items:center!important;min-height:82px!important}.profile-hero.profile-hero--slim .profile-avatar{width:52px!important;height:52px!important;border-radius:14px!important;font-size:18px!important;box-shadow:none!important}.profile-hero.profile-hero--slim h1{margin:0!important;font-size:clamp(24px,3vw,34px)!important;line-height:.94!important}.profile-hero.profile-hero--slim .profile-stats--inline div{min-height:36px!important;padding:0 13px!important;border-radius:0!important;background:transparent!important}.profile-hero.profile-hero--slim .profile-hero__button{min-height:40px!important;border-radius:10px!important}.profile-listings.profile-listings--feed{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}@media(max-width:1180px){.profile-listings.profile-listings--feed{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:820px){.profile-hero.profile-hero--slim{grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;padding:13px!important}.profile-listings.profile-listings--feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:560px){.profile-listings.profile-listings--feed{grid-template-columns:1fr!important}}body.profile-body .profile-page{padding-top:28px!important}body.profile-body .profile-hero.profile-hero--slim{min-height:132px!important;padding:24px!important;border-radius:28px!important;grid-template-columns:72px minmax(220px,1fr) auto!important;gap:20px!important;align-items:center!important;background:#ffffffe0!important;border:1px solid rgba(20,20,18,.08)!important;box-shadow:0 18px 48px #14141214!important}body.profile-body .profile-hero.profile-hero--slim .profile-avatar{width:72px!important;height:72px!important;border-radius:20px!important;font-size:23px!important;box-shadow:0 14px 30px #1d26212e!important}body.profile-body .profile-hero.profile-hero--slim .profile-hero__main,body.profile-body .profile-hero.profile-hero--slim .profile-hero__top{gap:8px!important}body.profile-body .profile-hero.profile-hero--slim .eyebrow{font-size:11px!important;letter-spacing:.09em!important}body.profile-body .profile-hero.profile-hero--slim .profile-pill{min-height:22px!important;padding:0 9px!important;font-size:11px!important}body.profile-body .profile-hero.profile-hero--slim h1{max-width:min(520px,35vw)!important;font-size:clamp(34px,4vw,52px)!important;line-height:.9!important}body.profile-body .profile-title-row span{font-size:12px!important}body.profile-body .profile-hero__side{display:grid!important;grid-template-columns:minmax(410px,1fr) max-content!important;align-items:center!important;gap:14px!important;justify-self:end!important}body.profile-body .profile-stats.profile-stats--inline{display:grid!important;grid-template-columns:repeat(4,minmax(92px,1fr))!important;gap:8px!important;align-items:stretch!important}body.profile-body .profile-stats.profile-stats--inline div{min-width:0!important;min-height:60px!important;padding:10px 12px!important;border:1px solid rgba(20,20,18,.08)!important;border-radius:16px!important;background:#f7f5ee!important;display:grid!important;place-items:center!important;align-content:center!important;text-align:center!important}body.profile-body .profile-stats.profile-stats--inline b{font-size:20px!important;line-height:1!important;letter-spacing:-.04em!important;white-space:nowrap!important}body.profile-body .profile-stats.profile-stats--inline span{max-width:90px!important;margin-top:5px!important;color:#14141285!important;font-size:10.5px!important;line-height:1.05!important;font-weight:680!important}body.profile-body .profile-stat-deposit b{color:#1b241f!important}body.profile-body .profile-hero__button{min-height:44px!important;padding:0 18px!important;border-radius:13px!important}body.profile-body .profile-hero--slim .profile-description-text,body.profile-body .profile-contacts-card.profile-contacts-card--slim{grid-column:2 / -1!important}body.profile-body .profile-section__actions,body.profile-body .profile-count-pill,body.profile-body .profile-section-link{display:none!important}body.profile-body .profile-panel{padding:18px!important;border-radius:24px!important}body.profile-body .profile-listings.profile-listings--feed{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;justify-content:stretch!important}body.profile-body .profile-listings--feed .listing-card,body.profile-body .profile-feed-card{width:auto!important;min-width:0!important;max-width:none!important}body.profile-body .profile-listings--feed .listing-card__media{aspect-ratio:1.12 / .82!important}body.profile-body .profile-listings--feed .listing-card__body{padding:12px!important}body.profile-body .profile-listings--feed .listing-card__title{min-height:34px!important;max-height:none!important;font-size:15px!important;line-height:1.2!important}body.profile-body .profile-listings--feed .listing-card__city{display:block!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}body.profile-body .profile-listings--feed .listing-card__price{margin-top:8px!important;font-size:19px!important}body.profile-body .profile-listings--feed .listing-card__button,body.profile-body .profile-listings--feed .profile-card-open{height:38px!important;min-height:38px!important;border-radius:13px!important;background:#f1f0ea!important;display:grid!important;place-items:center!important;text-decoration:none!important}@media(max-width:1180px){body.profile-body .profile-hero.profile-hero--slim{grid-template-columns:68px minmax(0,1fr)!important}body.profile-body .profile-hero__side{grid-column:1 / -1!important;grid-template-columns:minmax(0,1fr) max-content!important;justify-self:stretch!important}body.profile-body .profile-hero--slim .profile-description-text,body.profile-body .profile-contacts-card.profile-contacts-card--slim{grid-column:1 / -1!important}body.profile-body .profile-listings.profile-listings--feed{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:820px){body.profile-body .profile-hero.profile-hero--slim{padding:18px!important;grid-template-columns:60px minmax(0,1fr)!important}body.profile-body .profile-hero.profile-hero--slim .profile-avatar{width:60px!important;height:60px!important;border-radius:18px!important}body.profile-body .profile-hero.profile-hero--slim h1{max-width:68vw!important;font-size:clamp(30px,8vw,44px)!important}body.profile-body .profile-hero__side{grid-template-columns:1fr!important}body.profile-body .profile-stats.profile-stats--inline,body.profile-body .profile-listings.profile-listings--feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:560px){body.profile-body .profile-hero.profile-hero--slim{grid-template-columns:1fr!important}body.profile-body .profile-hero__button{width:100%!important}body.profile-body .profile-listings.profile-listings--feed{grid-template-columns:1fr!important}}


/* XP mobile feed FINAL v26: two product cards per row, overriding old one-column rules. */
@media (max-width: 820px) {
  .listing-grid,
  .profile-listings,
  .profile-listings.profile-listings--feed,
  body.profile-body .profile-listings,
  body.profile-body .profile-listings.profile-listings--feed {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    justify-content: stretch !important;
  }

  .listing-card,
  .profile-listings--feed .listing-card,
  body.profile-body .profile-listings--feed .listing-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(18,18,15,.07) !important;
  }

  .listing-card:hover,
  .profile-listings--feed .listing-card:hover {
    transform: none !important;
    box-shadow: 0 6px 18px rgba(18,18,15,.07) !important;
  }

  .listing-card__media,
  .profile-listings--feed .listing-card__media,
  body.profile-body .profile-listings--feed .listing-card__media {
    aspect-ratio: 1 / 1 !important;
  }

  .listing-card__body,
  .profile-listings--feed .listing-card__body,
  body.profile-body .profile-listings--feed .listing-card__body {
    padding: 8px !important;
  }

  .favorite-button {
    top: 7px !important;
    right: 7px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 12px !important;
  }

  .favorite-button img {
    width: 15px !important;
    height: 15px !important;
  }

  .listing-card__title,
  .profile-listings--feed .listing-card__title,
  body.profile-body .profile-listings--feed .listing-card__title {
    min-height: 33px !important;
    max-height: 34px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    letter-spacing: -.015em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
  }

  .listing-card__city,
  .profile-listings--feed .listing-card__city {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .listing-card__price,
  .profile-listings--feed .listing-card__price,
  body.profile-body .profile-listings--feed .listing-card__price {
    margin-top: 7px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .listing-card__footer {
    margin-top: 7px !important;
    gap: 5px !important;
  }

  .condition-tag {
    max-width: 70px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .listing-card__time {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .listing-card__button,
  .profile-listings--feed .listing-card__button,
  .profile-listings--feed .profile-card-open,
  body.profile-body .profile-listings--feed .listing-card__button,
  body.profile-body .profile-listings--feed .profile-card-open {
    display: none !important;
  }

  .listings-load-more {
    grid-column: 1 / -1 !important;
    padding-top: 10px !important;
  }
}


/* XP messages phone FINAL v26: mobile list -> tap chat -> full chat with back. */
.messages-mobile-back,
.message-preview__mobile-avatar {
  display: none;
}

@media (max-width: 700px) {
  .messages-page {
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100svh - 70px) !important;
    min-height: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom) !important;
    overflow: hidden !important;
  }

  .messages-page > section,
  .messages-layout,
  .messages-layout--empty {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  .messages-sidebar {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 18px 18px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .messages-title-row {
    min-height: 44px !important;
    margin: 0 0 12px !important;
    padding: 0 2px !important;
    align-items: end !important;
  }

  .messages-title-row .eyebrow {
    display: none !important;
  }

  .messages-title-row h1 {
    font-family: var(--font-display) !important;
    font-size: 32px !important;
    line-height: 1 !important;
    letter-spacing: -.04em !important;
  }

  .messages-list,
  .messages-empty-list {
    display: block !important;
    height: calc(100% - 56px) !important;
    max-height: none !important;
    padding: 0 !important;
    overflow-y: auto !important;
    border-top: 1px solid rgba(18,18,15,.08) !important;
  }

  .message-preview {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    grid-template-rows: none !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 68px !important;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(18,18,15,.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .message-preview:hover,
  .message-preview.is-active {
    background: transparent !important;
    box-shadow: none !important;
  }

  .message-preview__mobile-avatar {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg,#151512,#485148) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    letter-spacing: -.05em !important;
    text-transform: uppercase !important;
  }

  .message-preview__mobile-body {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
  }

  .message-preview__top {
    min-width: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .message-preview b {
    min-width: 0 !important;
    color: var(--ink) !important;
    font-size: 14px !important;
    font-weight: 820 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-preview__title {
    color: #aaaab1 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
  }

  .message-preview p {
    max-width: 100% !important;
    margin: 0 !important;
    color: #b2b2b8 !important;
    font-size: 13px !important;
    line-height: 1.22 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .message-preview__unread {
    position: static !important;
    justify-self: end !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    background: #151512 !important;
    box-shadow: none !important;
  }

  .message-thread--select {
    display: none !important;
  }

  .messages-layout:has(.message-thread:not(.message-thread--select):not(.message-thread--empty)) .messages-sidebar {
    display: none !important;
  }

  .messages-layout:has(.message-thread:not(.message-thread--select):not(.message-thread--empty)) .message-thread {
    display: grid !important;
  }

  .message-thread {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 0 !important;
  }

  .message-thread__head {
    min-height: 64px !important;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px !important;
    border-bottom: 1px solid rgba(18,18,15,.08) !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .messages-mobile-back {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 40px !important;
    color: #2864d8 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
  }

  .message-thread__head > div {
    min-width: 0 !important;
  }

  .message-thread__head .eyebrow {
    display: none !important;
  }

  .message-thread__head h2 {
    margin: 0 !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    font-weight: 840 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-thread__head p {
    margin-top: 2px !important;
    color: #9b9ba2 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-bubble-stack {
    padding: 14px 14px 18px !important;
    gap: 8px !important;
    background: #fff !important;
  }

  .message-bubble {
    max-width: 82% !important;
    border-radius: 18px !important;
    padding: 9px 11px !important;
    box-shadow: none !important;
    border-color: rgba(18,18,15,.08) !important;
    background: #f3f3f5 !important;
  }

  .message-bubble.is-mine {
    background: #151512 !important;
    border-color: #151512 !important;
  }

  .message-bubble__meta {
    margin-bottom: 5px !important;
    font-size: 11px !important;
  }

  .message-bubble p {
    font-size: 14px !important;
    line-height: 1.36 !important;
  }

  .message-reply-box {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid rgba(18,18,15,.08) !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .message-reply-row {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 8px !important;
  }

  .message-thread .message-reply-box textarea {
    min-height: 42px !important;
    height: 42px !important;
    max-height: 112px !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 11px 13px !important;
    background: #f4f4f6 !important;
    font-size: 15px !important;
  }

  .message-send-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    background: #151512 !important;
  }
}


/* XP v27 FINAL MOBILE FIXES: category/favorites/profile grids + FunPay-like chats. */
@media (max-width: 700px) {
  /* Two cards everywhere, not only on main feed. */
  .listing-grid,
  body[data-category-page] .listing-grid,
  .content-column .listing-grid,
  .profile-listings,
  .profile-listings.profile-listings--feed,
  body.profile-body .profile-listings,
  body.profile-body .profile-listings.profile-listings--feed,
  .favorites-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .listing-card,
  .profile-listings--feed .listing-card,
  body.profile-body .profile-listings--feed .listing-card,
  .favorite-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(24,24,30,.055) !important;
  }

  .listing-card:hover,
  .favorite-card:hover {
    transform: none !important;
    box-shadow: 0 8px 22px rgba(24,24,30,.055) !important;
  }

  .listing-card__media,
  .profile-listings--feed .listing-card__media,
  body.profile-body .profile-listings--feed .listing-card__media,
  .favorite-card__image {
    aspect-ratio: 1 / 1.04 !important;
    min-height: 0 !important;
  }

  .listing-card__media img,
  .favorite-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .favorite-button,
  .favorite-card__heart {
    top: 7px !important;
    right: 7px !important;
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
    border-radius: 50% !important;
  }

  .favorite-button img,
  .favorite-card__heart img {
    width: 16px !important;
    height: 16px !important;
  }

  .listing-card__body,
  .profile-listings--feed .listing-card__body,
  body.profile-body .profile-listings--feed .listing-card__body,
  .favorite-card__body {
    padding: 8px 8px 9px !important;
    gap: 6px !important;
  }

  .listing-card__title,
  .profile-listings--feed .listing-card__title,
  body.profile-body .profile-listings--feed .listing-card__title,
  .favorite-card h3 {
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    letter-spacing: -.015em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .listing-card__city,
  .profile-listings--feed .listing-card__city,
  body.profile-body .profile-listings--feed .listing-card__city,
  .favorite-card p,
  .favorite-card span {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .listing-card__price,
  .profile-listings--feed .listing-card__price,
  body.profile-body .profile-listings--feed .listing-card__price,
  .favorite-card b {
    margin-top: 5px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .listing-card__footer {
    margin-top: 7px !important;
    gap: 6px !important;
  }

  .condition-tag {
    max-width: 72px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .listing-card__time {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .listing-card__button,
  .profile-listings--feed .listing-card__button,
  body.profile-body .profile-listings--feed .listing-card__button,
  .profile-card-open {
    display: none !important;
  }

  .favorite-card__seller,
  .favorite-card__actions {
    display: none !important;
  }

  .favorites-hero,
  .profile-panel,
  body.profile-body .profile-panel {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  /* Profile: remove settings/action button area for own profile on mobile and desktop fallback. */
  body.profile-body .profile-hero__button[href="/settings"],
  body.profile-body a.profile-hero__button[href="/settings"],
  body.profile-body .profile-hero__side > a[href="/settings"] {
    display: none !important;
  }
}

/* Always hide profile settings hero button if an old cached JS ever renders it. */
body.profile-body .profile-hero a[href="/settings"].profile-hero__button,
body.profile-body .profile-hero__side > a[href="/settings"] {
  display: none !important;
}

@media (max-width: 700px) {
  /* Dialog list like FunPay: full-width rows with avatar, name, date, preview. */
  .messages-page {
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100svh - 72px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .messages-page > section,
  .messages-layout,
  .messages-layout--empty {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  .messages-sidebar {
    display: grid !important;
    grid-template-rows: auto minmax(0,1fr) !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 18px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .messages-title-row {
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 20px 12px !important;
    border-bottom: 1px solid rgba(18,18,15,.08) !important;
    align-items: end !important;
  }

  .messages-title-row .eyebrow { display: none !important; }

  .messages-title-row h1 {
    font-size: 32px !important;
    line-height: 1 !important;
    letter-spacing: -.04em !important;
  }

  .messages-list,
  .messages-empty-list {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    overflow-y: auto !important;
    border: 0 !important;
  }

  .message-preview {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) auto !important;
    gap: 0 !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 64px !important;
    padding: 0 10px 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(18,18,15,.09) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .message-preview.is-active {
    background: #4b8fdc !important;
  }

  .message-preview__mobile-avatar {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg,#151512,#485148) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    letter-spacing: -.05em !important;
  }

  .message-preview__mobile-body {
    min-width: 0 !important;
    display: grid !important;
    gap: 1px !important;
    padding: 7px 0 !important;
  }

  .message-preview__top {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) max-content !important;
    gap: 8px !important;
    align-items: baseline !important;
  }

  .message-preview b {
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
    color: #1d1d1f !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-preview time {
    display: inline !important;
    color: #555 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 560 !important;
  }

  .message-preview__title,
  .message-preview p {
    min-width: 0 !important;
    color: #b5b5bb !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
    font-weight: 560 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .message-preview.is-active b,
  .message-preview.is-active time,
  .message-preview.is-active .message-preview__title,
  .message-preview.is-active p {
    color: #fff !important;
  }

  .message-preview__unread {
    justify-self: end !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #151512 !important;
    color: #fff !important;
    font-size: 11px !important;
    box-shadow: none !important;
  }

  .message-thread--select { display: none !important; }

  .messages-layout:not(.messages-layout--thread-active) .message-thread:not(.message-thread--empty) {
    display: none !important;
  }

  .messages-layout.messages-layout--thread-active .messages-sidebar {
    display: none !important;
  }

  .messages-layout.messages-layout--thread-active .message-thread {
    display: grid !important;
  }

  .message-thread {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    grid-template-rows: auto minmax(0,1fr) auto !important;
    gap: 0 !important;
  }

  .message-thread__head {
    min-height: 64px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(18,18,15,.08) !important;
    display: grid !important;
    grid-template-columns: 28px 48px minmax(0,1fr) 44px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .messages-mobile-back {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 42px !important;
    color: #3678d8 !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
  }

  .message-thread__mobile-avatar {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg,#151512,#485148) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 850 !important;
  }

  .message-thread__head > div {
    min-width: 0 !important;
  }

  .message-thread__head .eyebrow { display: none !important; }

  .message-thread__head h2 {
    margin: 0 !important;
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-thread__head p {
    margin-top: 2px !important;
    color: #8e8e93 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .message-bubble-stack {
    padding: 14px 14px 18px !important;
    gap: 9px !important;
    background: #fff !important;
  }

  .message-bubble {
    max-width: 84% !important;
    border-radius: 18px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    border-color: rgba(18,18,15,.08) !important;
    background: #f2f2f4 !important;
  }

  .message-bubble.is-mine {
    background: #151512 !important;
    border-color: #151512 !important;
  }

  .message-bubble__meta {
    margin-bottom: 5px !important;
    font-size: 11px !important;
  }

  .message-bubble p {
    font-size: 14px !important;
    line-height: 1.38 !important;
  }

  .message-reply-box {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid rgba(18,18,15,.08) !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  .message-reply-row {
    grid-template-columns: minmax(0,1fr) 42px !important;
    gap: 8px !important;
  }

  .message-thread .message-reply-box textarea {
    min-height: 42px !important;
    height: 42px !important;
    max-height: 112px !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 11px 13px !important;
    background: #f4f4f6 !important;
    font-size: 15px !important;
  }

  .message-send-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    background: #151512 !important;
  }
}
