/* Urbiax Community v4 — premium cards, details modal and Buy & Sell polish
   Safe override file. Community only. No database changes. */

body.ubx-community-page{
  --ubx-card-ink:#0f172a;
  --ubx-card-muted:#475569;
  --ubx-card-soft:#f8fafc;
  --ubx-card-line:rgba(15,23,42,.08);
  --ubx-violet:#6d28d9;
  --ubx-blue:#2563eb;
  --ubx-amber:#d97706;
  --ubx-green:#15803d;
  --ubx-rose:#e11d48;
}

/* Local marketplace strip */
body.ubx-community-page .ubx-market-spotlight{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.9fr) !important;
  gap:14px !important;
  align-items:stretch !important;
  margin:0 0 14px !important;
  padding:16px !important;
  border-radius:24px !important;
  overflow:hidden !important;
  background:
    radial-gradient(270px 180px at 8% 0%, rgba(251,191,36,.25), rgba(251,191,36,0) 65%),
    radial-gradient(260px 180px at 100% 25%, rgba(109,40,217,.18), rgba(109,40,217,0) 70%),
    linear-gradient(135deg,#fff7ed 0%,#ffffff 52%,#f5f3ff 100%) !important;
  border:1px solid rgba(217,119,6,.16) !important;
  box-shadow:0 18px 42px rgba(15,23,42,.09), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
body.ubx-community-page .ubx-market-kicker{
  display:inline-flex !important;
  align-items:center !important;
  width:max-content !important;
  min-height:25px !important;
  padding:0 11px !important;
  border-radius:999px !important;
  background:rgba(217,119,6,.12) !important;
  color:#92400e !important;
  font-size:11.5px !important;
  font-weight:1000 !important;
  letter-spacing:.02em !important;
  text-transform:uppercase !important;
}
body.ubx-community-page .ubx-market-copy h2{
  margin:8px 0 5px !important;
  color:#111827 !important;
  font-size:clamp(22px,3.6vw,34px) !important;
  line-height:1.04 !important;
  font-weight:1000 !important;
  letter-spacing:-.06em !important;
}
body.ubx-community-page .ubx-market-copy p{
  margin:0 !important;
  max-width:760px !important;
  color:#475569 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:780 !important;
}
body.ubx-community-page .ubx-market-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  align-content:stretch !important;
}
body.ubx-community-page .ubx-market-chip,
body.ubx-community-page .ubx-market-cta{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-height:76px !important;
  padding:12px 13px !important;
  border-radius:18px !important;
  text-decoration:none !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.82) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.85) !important;
  color:#0f172a !important;
}
body.ubx-community-page .ubx-market-chip strong{
  display:block !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:-.05em !important;
}
body.ubx-community-page .ubx-market-chip span{
  display:block !important;
  margin-top:4px !important;
  color:#475569 !important;
  font-size:12.3px !important;
  font-weight:900 !important;
}
body.ubx-community-page .ubx-market-chip.is-market{background:linear-gradient(150deg,#fff7ed,#ffffff) !important;border-color:rgba(217,119,6,.16) !important;}
body.ubx-community-page .ubx-market-chip.is-free{background:linear-gradient(150deg,#eff6ff,#ffffff) !important;border-color:rgba(37,99,235,.16) !important;}
body.ubx-community-page .ubx-market-chip.is-active{outline:3px solid rgba(217,119,6,.16) !important;}
body.ubx-community-page .ubx-market-cta{
  grid-column:1 / -1 !important;
  align-items:center !important;
  min-height:52px !important;
  border:0 !important;
  cursor:pointer !important;
  color:#fff !important;
  background:linear-gradient(135deg,#f59e0b,#d97706) !important;
  box-shadow:0 14px 30px rgba(217,119,6,.25) !important;
  font-size:15px !important;
  font-weight:1000 !important;
  letter-spacing:-.025em !important;
}

/* Premium cards */
body.ubx-community-page .ubx-feed{
  gap:14px !important;
}
body.ubx-community-page .ubx-post-card.ubx-community-card{
  position:relative !important;
  overflow:hidden !important;
  border-radius:26px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
  box-shadow:0 16px 38px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.98) !important;
}
body.ubx-community-page .ubx-post-card.ubx-community-card::before{
  content:'' !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  bottom:0 !important;
  width:5px !important;
  background:linear-gradient(180deg,#8b5cf6,#6d28d9) !important;
  opacity:.9 !important;
  z-index:2 !important;
}
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="rubbish"]::before,
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="parking"]::before,
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="warning"]::before,
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="suspicious"]::before{background:linear-gradient(180deg,#fb7185,#e11d48) !important;}
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="buy"]::before,
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="free"]::before{background:linear-gradient(180deg,#fbbf24,#d97706) !important;}
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="question"]::before{background:linear-gradient(180deg,#a855f7,#6d28d9) !important;}
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="recommend"]::before{background:linear-gradient(180deg,#22c55e,#15803d) !important;}
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="lost"]::before,
body.ubx-community-page .ubx-post-card.ubx-community-card[data-category*="pets"]::before{background:linear-gradient(180deg,#f472b6,#db2777) !important;}

body.ubx-community-page .ubx-community-card .ubx-social-head{
  align-items:center !important;
  gap:10px !important;
}
body.ubx-community-page .ubx-community-card .ubx-avatar.ubx-author-pill{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  border-radius:16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  color:#fff !important;
  background:linear-gradient(135deg,#8b5cf6,#2563eb) !important;
  box-shadow:0 9px 18px rgba(37,99,235,.18) !important;
  font-size:0 !important;
}
body.ubx-community-page .ubx-community-card .ubx-avatar.ubx-author-pill::first-letter{
  font-size:16px !important;
  font-weight:1000 !important;
}
body.ubx-community-page .ubx-community-card .ubx-social-meta strong{
  color:#0f172a !important;
  font-weight:1000 !important;
  letter-spacing:-.035em !important;
}
body.ubx-community-page .ubx-community-card .ubx-social-meta span{
  color:#64748b !important;
  font-weight:800 !important;
}
body.ubx-community-page .ubx-community-card h2{
  color:#0f172a !important;
  font-weight:1000 !important;
  letter-spacing:-.045em !important;
}
body.ubx-community-page .ubx-community-card .ubx-post-text{
  color:#334155 !important;
  font-weight:720 !important;
}
body.ubx-community-page .ubx-community-card .ubx-badge.community{
  border:1px solid rgba(109,40,217,.12) !important;
  background:linear-gradient(135deg,rgba(139,92,246,.12),rgba(37,99,235,.08)) !important;
  color:#5b21b6 !important;
  font-weight:1000 !important;
}
body.ubx-community-page .ubx-community-card .ubx-buy-price-pill,
body.ubx-community-page .ubx-community-card .ubx-photo-price-ribbon{
  box-shadow:0 10px 22px rgba(217,119,6,.18) !important;
}
body.ubx-community-page .ubx-community-card[data-category*="buy"] .ubx-badge.community,
body.ubx-community-page .ubx-community-card[data-category*="free"] .ubx-badge.community{
  background:linear-gradient(135deg,rgba(251,191,36,.22),rgba(217,119,6,.10)) !important;
  border-color:rgba(217,119,6,.17) !important;
  color:#92400e !important;
}
body.ubx-community-page .ubx-community-card .ubx-media-carousel,
body.ubx-community-page .ubx-community-card .ubx-media-placeholder{
  border-radius:22px !important;
  overflow:hidden !important;
  border:1px solid rgba(15,23,42,.07) !important;
  background:#f8fafc !important;
}
body.ubx-community-page .ubx-community-card .ubx-media-slide img,
body.ubx-community-page .ubx-community-card .ubx-media-slide video{
  transform:scale(1.005) !important;
}
body.ubx-community-page .ubx-community-card .ubx-actions-bottom{
  padding-top:10px !important;
  border-top:1px solid rgba(15,23,42,.06) !important;
}
body.ubx-community-page .ubx-community-card .board-btn,
body.ubx-community-page .ubx-community-card .ubx-share-btn,
body.ubx-community-page .ubx-community-card .ubx-reply-open,
body.ubx-community-page .ubx-thread-open{
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:#fff !important;
  color:#0f172a !important;
  box-shadow:0 8px 18px rgba(15,23,42,.06) !important;
}
body.ubx-community-page .ubx-community-card .ubx-reply-open,
body.ubx-community-page .ubx-thread-open{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9) !important;
  color:#fff !important;
  border:0 !important;
}
body.ubx-community-page .ubx-community-card .ubx-reply-summary{
  padding:0 14px 12px !important;
}
body.ubx-community-page .ubx-community-card .ubx-thread{
  margin:0 14px 14px !important;
  border-radius:20px !important;
  background:#f8fafc !important;
  border:1px solid rgba(15,23,42,.06) !important;
}

/* Post details modal — app-like card instead of plain cloned feed card */
body.ubx-community-page .ubx-post-modal{
  background:rgba(15,23,42,.42) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  backdrop-filter:blur(8px) !important;
}
body.ubx-community-page .ubx-post-modal-panel{
  width:min(980px,calc(100vw - 26px)) !important;
  max-height:calc(100vh - 28px) !important;
  border-radius:30px !important;
  border:1px solid rgba(255,255,255,.34) !important;
  background:linear-gradient(180deg,#ffffff,#f8fafc) !important;
  box-shadow:0 30px 90px rgba(15,23,42,.34) !important;
  overflow:hidden !important;
}
body.ubx-community-page .ubx-post-modal-head{
  min-height:76px !important;
  padding:17px 20px !important;
  background:
    radial-gradient(260px 94px at 12% 0%,rgba(139,92,246,.18),rgba(139,92,246,0) 65%),
    linear-gradient(135deg,#ffffff,#f5f3ff) !important;
  border-bottom:1px solid rgba(15,23,42,.07) !important;
}
body.ubx-community-page .ubx-post-modal-head h2{
  color:#0f172a !important;
  font-size:26px !important;
  line-height:1.05 !important;
  font-weight:1000 !important;
  letter-spacing:-.055em !important;
}
body.ubx-community-page .ubx-post-modal-head p{
  margin-top:4px !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:820 !important;
}
body.ubx-community-page .ubx-post-modal-body{
  padding:16px !important;
  background:#f8fafc !important;
}
body.ubx-community-page .ubx-post-modal-card.ubx-community-card{
  border-radius:26px !important;
  background:#fff !important;
  box-shadow:0 14px 36px rgba(15,23,42,.10) !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-media-carousel,
body.ubx-community-page .ubx-post-modal-card .ubx-media-placeholder{
  margin:0 !important;
  border-radius:24px 24px 16px 16px !important;
  min-height:330px !important;
  max-height:min(54vh,520px) !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-media-track,
body.ubx-community-page .ubx-post-modal-card .ubx-media-slide{
  min-height:330px !important;
  max-height:min(54vh,520px) !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-post-body{
  padding:18px 18px 12px !important;
}
body.ubx-community-page .ubx-post-modal-card h2{
  font-size:clamp(24px,4.4vw,36px) !important;
  line-height:1.06 !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-post-text{
  font-size:16px !important;
  line-height:1.52 !important;
  max-height:none !important;
  -webkit-line-clamp:unset !important;
  display:block !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-actions-bottom,
body.ubx-community-page .ubx-post-modal-card .ubx-reply-summary{
  padding-left:18px !important;
  padding-right:18px !important;
}
body.ubx-community-page .ubx-post-modal-card .ubx-thread{
  margin:0 18px 18px !important;
}

@media (min-width:760px){
  body.ubx-community-page.ubx-view-list .ubx-post-card.ubx-community-card{
    grid-template-columns:minmax(230px,300px) minmax(0,1fr) !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-media-carousel,
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-media-placeholder{
    margin:12px 0 12px 12px !important;
    min-height:224px !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-post-body{
    padding:18px 18px 10px !important;
  }
}

@media (max-width:760px){
  body.ubx-community-page .ubx-market-spotlight{
    grid-template-columns:1fr !important;
    gap:12px !important;
    margin:0 0 12px !important;
    padding:14px !important;
    border-radius:22px !important;
  }
  body.ubx-community-page .ubx-market-copy h2{
    font-size:22px !important;
    line-height:1.07 !important;
  }
  body.ubx-community-page .ubx-market-copy p{
    font-size:13px !important;
    line-height:1.34 !important;
  }
  body.ubx-community-page .ubx-market-chip,
  body.ubx-community-page .ubx-market-cta{
    min-height:64px !important;
    border-radius:16px !important;
  }
  body.ubx-community-page .ubx-market-chip strong{
    font-size:22px !important;
  }
  body.ubx-community-page .ubx-market-cta{
    min-height:50px !important;
    font-size:14.5px !important;
  }
  body.ubx-community-page .ubx-post-card.ubx-community-card{
    border-radius:22px !important;
    box-shadow:0 13px 30px rgba(15,23,42,.085) !important;
  }
  body.ubx-community-page .ubx-post-card.ubx-community-card::before{
    width:4px !important;
  }
  body.ubx-community-page .ubx-community-card .ubx-avatar.ubx-author-pill{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    border-radius:14px !important;
  }
  body.ubx-community-page .ubx-community-card .ubx-media-carousel,
  body.ubx-community-page .ubx-community-card .ubx-media-placeholder{
    border-radius:18px !important;
  }
  body.ubx-community-page .ubx-post-modal-panel{
    width:calc(100vw - 14px) !important;
    max-height:calc(100vh - 14px) !important;
    border-radius:24px !important;
  }
  body.ubx-community-page .ubx-post-modal-head{
    min-height:66px !important;
    padding:14px 58px 13px 15px !important;
  }
  body.ubx-community-page .ubx-post-modal-head h2{
    font-size:22px !important;
  }
  body.ubx-community-page .ubx-post-modal-head p{
    font-size:12.2px !important;
    line-height:1.25 !important;
  }
  body.ubx-community-page .ubx-post-modal-body{
    padding:10px !important;
  }
  body.ubx-community-page .ubx-post-modal-card .ubx-media-carousel,
  body.ubx-community-page .ubx-post-modal-card .ubx-media-placeholder,
  body.ubx-community-page .ubx-post-modal-card .ubx-media-track,
  body.ubx-community-page .ubx-post-modal-card .ubx-media-slide{
    min-height:255px !important;
    max-height:42vh !important;
  }
  body.ubx-community-page .ubx-post-modal-card .ubx-post-body{
    padding:14px 13px 9px !important;
  }
  body.ubx-community-page .ubx-post-modal-card h2{
    font-size:23px !important;
    line-height:1.08 !important;
  }
  body.ubx-community-page .ubx-post-modal-card .ubx-post-text{
    font-size:15.8px !important;
    line-height:1.48 !important;
  }
}

@media (max-width:480px){
  body.ubx-community-page.ubx-view-list .ubx-post-card.ubx-community-card{
    grid-template-columns:122px minmax(0,1fr) !important;
    min-height:146px !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-media-carousel,
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-media-placeholder{
    width:122px !important;
    min-height:146px !important;
    border-radius:18px 0 0 18px !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-media-slide{
    min-height:146px !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card h2{
    font-size:17.4px !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-community-card .ubx-post-text{
    font-size:13.8px !important;
  }
  body.ubx-community-page .ubx-community-card .ubx-actions-bottom{
    gap:7px !important;
  }
}


/* Community v5 — mobile compact top area
   Desktop stays like v4. On phones, posts appear much sooner. */
@media (max-width:700px){
  body.ubx-community-page .ubx-shell{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  /* Compact intro: keep identity, remove vertical showroom feel on mobile. */
  body.ubx-community-page .ubx-hero.ubx-hero-clean{
    margin:6px 0 8px !important;
    padding:13px 13px 12px !important;
    min-height:0 !important;
    border-radius:20px !important;
  }
  body.ubx-community-page .ubx-hero-clean .ubx-eyebrow{
    font-size:10.5px !important;
    min-height:20px !important;
    padding:0 9px !important;
    margin-bottom:5px !important;
  }
  body.ubx-community-page .ubx-hero-clean h1{
    font-size:28px !important;
    line-height:1 !important;
    margin:0 0 4px !important;
    letter-spacing:-.06em !important;
  }
  body.ubx-community-page .ubx-hero-clean p{
    font-size:12.5px !important;
    line-height:1.2 !important;
    max-width:100% !important;
    margin:0 0 9px !important;
    display:-webkit-box !important;
    -webkit-line-clamp:1 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }
  body.ubx-community-page .ubx-hero-clean .ubx-primary{
    min-height:38px !important;
    padding:0 14px !important;
    border-radius:999px !important;
    font-size:13px !important;
  }

  /* Shortcut area becomes one fast horizontal row instead of a tall 2x3 block. */
  body.ubx-community-page .ubx-action-card.ubx-action-card-rich{
    margin:0 0 8px !important;
    padding:10px !important;
    border-radius:18px !important;
  }
  body.ubx-community-page .ubx-action-card.ubx-action-card-rich .ubx-action-copy{
    margin:0 0 7px !important;
  }
  body.ubx-community-page .ubx-action-card.ubx-action-card-rich .ubx-action-copy h2{
    font-size:17px !important;
    line-height:1.05 !important;
    margin:0 !important;
  }
  body.ubx-community-page .ubx-action-card.ubx-action-card-rich .ubx-action-copy p{
    display:none !important;
  }
  body.ubx-community-page .ubx-starter-row{
    display:flex !important;
    grid-template-columns:none !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
    padding:0 2px 2px !important;
    margin:0 -2px !important;
  }
  body.ubx-community-page .ubx-starter-row::-webkit-scrollbar{display:none !important;}
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile,
  body.ubx-community-page button.ubx-start-pill.ubx-community-hub-tile{
    flex:0 0 142px !important;
    width:142px !important;
    min-width:142px !important;
    min-height:76px !important;
    height:76px !important;
    padding:9px 9px 8px !important;
    border-radius:16px !important;
    gap:6px !important;
    scroll-snap-align:start !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-mini-icon{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    border-radius:11px !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-mini-icon svg{
    width:15px !important;
    height:15px !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-tile-text{
    padding-right:12px !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-tile-text strong{
    font-size:12.8px !important;
    line-height:1.05 !important;
    margin-bottom:2px !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-tile-text small{
    font-size:10.3px !important;
    line-height:1.12 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:1 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile .ubx-start-count{
    top:7px !important;
    right:7px !important;
    min-width:19px !important;
    height:19px !important;
    padding:0 5px !important;
    font-size:9px !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile::before{
    width:62px !important;
    height:62px !important;
    inset:-28px -22px auto auto !important;
  }
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile::after{
    right:8px !important;
    bottom:6px !important;
    font-size:18px !important;
  }

  /* Overview stats: horizontal compact row, not another tall block. */
  body.ubx-community-page .ubx-community-glance{
    display:flex !important;
    grid-template-columns:none !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
    margin:0 0 8px !important;
    padding:0 1px 2px !important;
  }
  body.ubx-community-page .ubx-community-glance::-webkit-scrollbar{display:none !important;}
  body.ubx-community-page .ubx-glance-card{
    flex:0 0 122px !important;
    min-width:122px !important;
    min-height:62px !important;
    padding:9px 10px !important;
    border-radius:15px !important;
    gap:1px !important;
    scroll-snap-align:start !important;
  }
  body.ubx-community-page .ubx-glance-card .ubx-glance-top{
    font-size:9.8px !important;
    line-height:1.05 !important;
  }
  body.ubx-community-page .ubx-glance-card strong{
    font-size:19px !important;
    line-height:1 !important;
  }
  body.ubx-community-page .ubx-glance-card small{
    font-size:10.2px !important;
    line-height:1.1 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:1 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  /* Marketplace strip remains useful, but no longer takes a whole screen. */
  body.ubx-community-page .ubx-market-spotlight{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 8px !important;
    padding:10px 11px !important;
    border-radius:17px !important;
    min-height:58px !important;
  }
  body.ubx-community-page .ubx-market-kicker,
  body.ubx-community-page .ubx-market-copy p,
  body.ubx-community-page .ubx-market-chip{
    display:none !important;
  }
  body.ubx-community-page .ubx-market-copy h2{
    margin:0 !important;
    font-size:16px !important;
    line-height:1.08 !important;
    letter-spacing:-.04em !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }
  body.ubx-community-page .ubx-market-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:0 !important;
  }
  body.ubx-community-page .ubx-market-cta{
    min-height:38px !important;
    height:38px !important;
    min-width:92px !important;
    padding:0 12px !important;
    border-radius:999px !important;
    font-size:13px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  /* Compact filter/search tools before the list. */
  body.ubx-community-page .ubx-filter-card{
    margin:0 0 7px !important;
    padding:8px 9px !important;
    border-radius:16px !important;
    min-height:48px !important;
  }
  body.ubx-community-page .ubx-filter-icon{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    border-radius:11px !important;
    font-size:17px !important;
  }
  body.ubx-community-page .ubx-filter-title{
    display:none !important;
  }
  body.ubx-community-page .ubx-filter-value{
    font-size:14px !important;
    line-height:1.1 !important;
    max-width:48vw !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.ubx-community-page .ubx-filter-open{
    min-height:36px !important;
    padding:0 12px !important;
    border-radius:999px !important;
    font-size:12.6px !important;
    white-space:nowrap !important;
  }
  body.ubx-community-page .ubx-live-search{
    margin:0 0 7px !important;
    border-radius:16px !important;
  }
  body.ubx-community-page .ubx-live-search input{
    min-height:42px !important;
    font-size:13.4px !important;
  }
  body.ubx-community-page .ubx-live-search-icon{
    width:34px !important;
    font-size:17px !important;
  }
  body.ubx-community-page .ubx-live-search-clear{
    width:34px !important;
    font-size:22px !important;
  }
  body.ubx-community-page .ubx-search-hint{
    display:none !important;
  }
  body.ubx-community-page .ubx-quick-tabs{
    margin:0 0 8px !important;
    gap:6px !important;
    padding-bottom:1px !important;
  }
  body.ubx-community-page .ubx-quick-tabs a{
    min-height:33px !important;
    padding:0 10px !important;
    border-radius:999px !important;
    font-size:12.2px !important;
  }
  body.ubx-community-page .ubx-quick-tabs .ubx-count-badge{
    min-width:19px !important;
    height:19px !important;
    font-size:9px !important;
  }
  body.ubx-community-page .ubx-board-view-row{
    margin:0 0 8px !important;
  }
  body.ubx-community-page .ubx-view-switch{
    padding:5px !important;
    margin:0 0 0 auto !important;
    border-radius:999px !important;
  }
  body.ubx-community-page .ubx-view-switch button{
    min-height:31px !important;
    padding:0 13px !important;
    font-size:12px !important;
  }

  /* Tighten first cards slightly so the feed feels immediate, without shrinking text too much. */
  body.ubx-community-page main.ubx-feed{
    margin-top:0 !important;
  }
  body.ubx-community-page.ubx-view-list .ubx-post-card.ubx-community-card{
    margin-bottom:10px !important;
  }
}

@media (max-width:380px){
  body.ubx-community-page .ubx-start-pill.ubx-community-hub-tile,
  body.ubx-community-page button.ubx-start-pill.ubx-community-hub-tile{
    flex-basis:132px !important;
    width:132px !important;
    min-width:132px !important;
  }
  body.ubx-community-page .ubx-market-copy h2{
    font-size:15px !important;
  }
  body.ubx-community-page .ubx-market-cta{
    min-width:84px !important;
    padding:0 10px !important;
    font-size:12.5px !important;
  }
}
