/* Shared responsive hardening for every BarterTap.az customer/admin surface. */
.by-card-badges{position:absolute;left:9px;top:9px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:calc(100% - 56px)}
.by-barter-badge,.by-vip-badge,.by-promotion-badge{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:5px 9px;border-radius:999px;color:#fff;font-size:10px;line-height:1;font-weight:600;letter-spacing:.1px;box-shadow:0 7px 18px rgba(14,16,28,.2);backdrop-filter:blur(8px)}
.by-barter-badge{background:linear-gradient(100deg,rgba(0,105,105,.96),rgba(17,147,138,.94));border:1px solid rgba(255,255,255,.28)}
.by-barter-badge svg{width:13px;height:13px;flex:0 0 13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.by-vip-badge{background:linear-gradient(100deg,var(--brand),var(--brand-d))}
.by-promotion-badge{border:1px solid rgba(255,255,255,.34);font-weight:800;letter-spacing:.24px}
.by-promotion-badge svg{width:12px;height:12px;flex:0 0 12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.by-promotion-badge.is-premium{background:linear-gradient(105deg,#ffad28,#f26b1d)}
.by-promotion-badge.is-vip{background:linear-gradient(105deg,#9f2762,#6f1f73)}
.by-promotion-badge.is-boost{background:linear-gradient(105deg,#119b8e,#08716d)}
.by-promotion-badge.is-inline{position:static!important;min-height:22px;padding:4px 7px;font-size:8px;box-shadow:none;backdrop-filter:none}
.by-card.is-promoted{border-color:color-mix(in srgb,var(--brand) 38%,var(--border));box-shadow:0 11px 28px color-mix(in srgb,var(--brand) 13%,transparent)}
.by-card.promotion-premium{border-color:color-mix(in srgb,#ff8a24 52%,var(--border));box-shadow:0 12px 30px rgba(242,107,29,.14)}
@media(max-width:640px){.by-card-badges{left:7px;top:7px;max-width:calc(100% - 45px)}.by-barter-badge,.by-vip-badge,.by-promotion-badge{min-height:23px;padding:4px 7px;font-size:8.5px}.by-card-badges b{white-space:nowrap}}
.by-card{display:flex;flex-direction:column;height:100%;min-width:0}
.by-card .ph{flex:0 0 auto}
.by-card .pb{display:flex;flex:1;flex-direction:column;min-width:0}
.by-card .strip{flex:0 0 auto;margin-top:auto}
.by-card.is-barter{border-color:color-mix(in srgb,var(--brand) 28%,var(--border))}
.by-barter-visual{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--surface-2,#f4f6f8);isolation:isolate}
.by-barter-visual.is-single{grid-template-columns:minmax(0,1fr)}
.by-barter-half{position:relative;min-width:0;overflow:hidden;background:linear-gradient(145deg,var(--surface-2,#f4f6f8),color-mix(in srgb,var(--brand,#a92e60) 8%,var(--surface,#fff)))}
.by-barter-half+.by-barter-half{border-left:2px solid rgba(255,255,255,.82)}
.by-barter-half picture,.by-barter-half img{width:100%;height:100%;display:block}
.by-barter-half img{object-fit:cover}
.by-barter-half.is-want img{filter:saturate(.92)}
.by-barter-side-label{position:absolute;left:8px;bottom:8px;z-index:3;max-width:calc(100% - 16px);padding:5px 8px;border-radius:999px;background:rgba(12,18,27,.78);color:#fff;font-size:8.5px;font-weight:700;line-height:1;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.18);backdrop-filter:blur(7px)}
.by-barter-half.is-want .by-barter-side-label{background:color-mix(in srgb,var(--brand-d,#087b75) 88%,transparent)}
.by-barter-placeholder,.by-image-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;color:var(--text-2,#667085);text-align:center;padding:16px}
.by-barter-placeholder svg,.by-image-empty svg{width:30px;height:30px;fill:none;stroke:var(--brand,#a92e60);stroke-width:1.8}
.by-barter-placeholder small{max-width:110px;font-size:9px;line-height:1.35}
.by-barter-visual-swap{position:absolute;left:50%;top:50%;z-index:5;width:36px;height:36px;border:3px solid var(--surface,#fff);border-radius:50%;display:grid;place-items:center;transform:translate(-50%,-50%);color:#fff;background:linear-gradient(145deg,var(--brand,#a92e60),var(--brand-d,#087b75));box-shadow:0 6px 18px rgba(var(--brand-rgb,169,46,96),.32)}
.by-barter-visual-swap svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.by-ai-disclosure{position:absolute;right:6px;top:42px;z-index:4;max-width:calc(100% - 12px);padding:4px 6px;border-radius:7px;background:rgba(255,255,255,.9);color:#7a2851;font-size:7.5px;font-weight:700;line-height:1;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.by-ai-disclosure.is-placeholder{color:var(--text-2)}
.by-image-side-manager{margin:0 0 14px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface-2)}
.by-image-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;border-radius:14px;background:var(--surface)}
.by-image-tabs button{min-height:42px;border:0;border-radius:11px;background:transparent;color:var(--text-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.by-image-tabs button.on{background:linear-gradient(110deg,var(--brand),var(--brand-d));color:#fff;box-shadow:0 7px 18px rgba(var(--brand-rgb),.2)}
.by-image-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.by-auto-image{display:inline-flex;align-items:center;gap:7px;color:var(--text-2);font-size:11.5px;line-height:1.35;cursor:pointer}
.by-auto-image input{width:17px;height:17px;accent-color:var(--brand)}
.by-image-guidance{margin:10px 0 0;color:var(--text-3);font-size:11px;line-height:1.55}
.by-ai-queued{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px;text-align:center;color:var(--brand);background:linear-gradient(145deg,var(--brand-soft),var(--surface))!important;border:1px dashed var(--brand)!important}
.by-ai-queued b{font-size:10px}.by-ai-queued small{font-size:8px;color:var(--text-3)}
.by-ai-queued button{position:absolute;right:5px;top:5px;width:24px;height:24px;border:0;border-radius:50%;background:var(--surface);color:var(--err);font-size:16px;cursor:pointer}
.by-card.is-barter .swap.sm{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;align-items:stretch}
.by-card.is-barter .swap-side{align-items:flex-start;min-width:0}
.by-card.is-barter .swap-side>div:last-child{min-width:0;max-width:100%}
.by-card.is-barter .swap-th{display:none}
.by-card.is-barter .swap-lbl{color:var(--brand);font-weight:700}
.by-card.is-barter .swap-t{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.35}
.by-card.is-barter .swap-ico{width:32px;height:32px;margin:0 auto;transform:rotate(90deg);border:2px solid var(--surface,#fff);background:linear-gradient(145deg,var(--brand,#a81c5e),var(--brand-d,#006b66));box-shadow:0 6px 18px rgba(var(--brand-rgb,168,28,94),.28),0 0 0 4px color-mix(in srgb,var(--brand,#a81c5e) 10%,transparent)}
.by-card.is-barter .swap-ico svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.by-card.is-barter .strip{font-weight:600}
@media(max-width:640px){.by-barter-visual-swap{width:29px;height:29px;border-width:2px}.by-barter-visual-swap svg{width:14px;height:14px}.by-barter-side-label{left:5px;bottom:5px;max-width:calc(100% - 10px);padding:4px 5px;font-size:6.8px}.by-ai-disclosure{right:3px;top:34px;padding:3px 4px;font-size:6.2px}.by-barter-placeholder{padding:8px}.by-barter-placeholder svg{width:22px;height:22px}.by-barter-placeholder small{font-size:7.5px}.by-barter-half+.by-barter-half{border-left-width:1px}}
@media(max-width:640px){.by-image-side-manager{padding:10px;border-radius:15px}.by-image-tabs button{min-height:40px;font-size:11px}.by-image-tools{display:grid;grid-template-columns:1fr;gap:9px}.by-image-tools .btn{width:100%;justify-content:center}.by-auto-image{font-size:10.5px}}
html{overflow-x:clip;scroll-behavior:smooth}
body{width:100%;min-width:0;overflow-x:clip}
img,video,canvas{max-width:100%}
.pcard .ph{height:auto!important;aspect-ratio:16/10;overflow:hidden}
.pcard .ph picture,.pcard .ph img{display:block;width:100%;height:100%}
.pcard .ph img{object-fit:cover}
.gallery .hero picture{display:block;width:100%;height:100%}
.gallery .hero picture img{display:block;width:100%;height:100%;object-fit:contain}
.gallery .thumbs picture{display:block;flex:0 0 72px;width:72px;height:58px}
.gallery .thumbs picture img{display:block;width:72px;height:58px;object-fit:cover}
button,a,input,select,textarea{max-width:100%}
.sidebar-backdrop{position:fixed;inset:0;z-index:89;background:rgba(12,19,27,.48);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;backdrop-filter:blur(2px)}
.sidebar-backdrop.on{opacity:1;visibility:visible}
body.mobile-nav-open{overflow:hidden;touch-action:none}
.bt-logo{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
a.is-current,[aria-current="page"]{text-decoration:none}
.info-head nav a.is-current{background:var(--brand-soft);color:var(--brand)}
.page-actions,.row-actions,.actions{align-items:center}

@media(max-width:900px) and (min-width:641px){
  #home-vip,#search-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Compact barter listing cards: the offered item owns the only image, while
   the requested item stays a concise text row. */
.by-card .pb{padding:11px 12px 10px}
.by-card-category{font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.by-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:38px;min-height:38px;max-height:38px;font-size:13px!important;line-height:1.45;margin-bottom:7px!important}
.by-card-meta{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;line-height:1.35;margin-top:7px!important;white-space:nowrap;overflow:hidden}
.by-card-price{flex:0 0 auto;color:var(--text);font-weight:700}
.by-card-location{min-width:0;overflow:hidden;text-overflow:ellipsis}
.by-card.is-barter .by-exchange{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
.by-card.is-barter .by-exchange .swap-side{min-height:43px;padding:6px 38px 6px 9px!important;border-radius:10px;gap:6px;background:var(--surface-2);border:1px solid color-mix(in srgb,var(--brand) 10%,var(--border))}
.by-card.is-barter .by-exchange .swap-side.want{background:color-mix(in srgb,var(--brand-soft) 45%,var(--surface));border-style:dashed}
.by-card.is-barter .by-exchange .swap-lbl{font-size:8px;line-height:1.2;letter-spacing:.35px}
.by-card.is-barter .by-exchange .swap-t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:normal;word-break:normal;font-size:10.5px;line-height:1.3;min-height:27px;margin-top:2px}
.by-card.is-barter .by-exchange .swap-ico{position:absolute;z-index:2;right:9px;top:50%;width:25px;height:25px;margin:0;transform:translateY(-50%) rotate(90deg);border-width:2px}
.by-card.is-barter .by-exchange .swap-ico svg{width:13px;height:13px}
.by-card .strip{min-height:28px;padding:6px 11px;font-size:9px}

/* Browser zoom also reduces the CSS viewport. Keep the public header usable
   through desktop, tablet and zoomed desktop widths instead of waiting for 640px. */
@media(max-width:1180px) and (min-width:901px){
  .topstrip{display:none!important}
  .site-head{padding-inline:16px!important;gap:10px!important}
  .site-head .search{max-width:380px!important;min-width:190px}
  .site-head>.spacer{min-width:0}
  .site-head>button[title="Sevimlilər"],.site-head>button[title="Bildirişlər"],.site-head>button[title="Mesajlar"]{display:none!important}
  .site-head .bt-logo{--bt-logo-mark-width:40px;--bt-logo-font-size:14px;min-width:124px;height:42px}
  .site-head .btn-red{padding-inline:14px}
}

@media(max-width:900px){
  .topstrip{display:none!important}
  .site-head{display:grid!important;grid-template-columns:42px minmax(120px,1fr) 174px 42px!important;align-items:center!important;padding:8px 14px!important;gap:7px!important;height:auto!important;min-height:66px!important}
  .site-head>.icon-btn:first-child{grid-column:1;grid-row:1;justify-self:start;width:42px!important;height:42px!important}
  .site-head .wordmark{grid-column:2;grid-row:1;justify-self:center;margin:0!important;max-width:100%;overflow:visible}
  .site-head .header-prefs{grid-column:3;grid-row:1;justify-self:end;width:174px;gap:6px}
  .site-head .header-prefs>.header-pref:last-child{display:flex;align-items:center;gap:4px}
  .site-head .header-lang-trigger{width:76px;min-width:76px;padding:0 8px}
  .site-head .header-theme-trigger{width:42px;min-width:42px}
  .site-head .header-pref-menu{position:fixed;left:14px;right:14px;top:120px;width:auto;max-width:none}
  .site-head .public-auth-btn{grid-column:4;grid-row:1;justify-self:end;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;justify-content:center}
  .site-head .public-auth-btn span{display:none}
  .site-head .search{grid-column:1/-1;grid-row:2;order:initial!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  .site-head>.spacer,.site-head>.lang,.site-head>.btn-red,.site-head>button[title="Sevimlilər"],.site-head>button[title="Bildirişlər"],.site-head>button[title="Mesajlar"]{display:none!important}
  .sidebar{width:min(84vw,310px)!important;max-width:310px;z-index:90!important;box-shadow:18px 0 55px rgba(12,19,27,.22)}
  .main{width:100%;min-width:0}
  .topbar{position:sticky;top:0;z-index:70;min-width:0}
  .page,.wrap,.sheet-body{min-width:0}
  .grid,.g2,.g3,.g4,.g-2-1,.g-1-2{min-width:0}
  .card,.card-body,.page-head,.page-actions{min-width:0;max-width:100%}
  .modal,.overlay>div{max-width:calc(100vw - 24px)!important}
}

@media(max-width:640px){
  :root{--mobile-pad:12px}
  .site-head{grid-template-columns:42px minmax(112px,1fr) 126px 42px!important;padding:8px var(--mobile-pad)!important;gap:5px!important}
  .site-head>.icon-btn:first-child{grid-column:1;grid-row:1;justify-self:start}
  .site-head .wordmark{grid-column:2;grid-row:1;justify-self:center;margin:0!important;max-width:100%;overflow:visible}
  .site-head .header-prefs{grid-column:3;grid-row:1;justify-self:end;width:126px;gap:3px}
  .site-head .header-lang-trigger{width:40px;min-width:40px;height:42px;padding:0;gap:0}
  .site-head .header-lang-trigger>span{display:none}
  .site-head .header-mode-toggle,.site-head .header-theme-trigger{width:40px;min-width:40px;height:42px}
  .site-head .header-pref-menu{position:fixed;left:12px;right:12px;top:112px;width:auto;max-width:none}
  .site-head .public-auth-btn{grid-column:4;grid-row:1;justify-self:end;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;justify-content:center}
  .site-head .public-auth-btn span{display:none}
  .site-head .search{grid-column:1/-1;grid-row:2;order:initial!important;width:100%!important;max-width:none!important;height:42px!important;margin:0!important}
  .site-head>.spacer,.site-head>.lang,.site-head>.btn-red,.site-head>button[title="Sevimlilər"],.site-head>button[title="Bildirişlər"],.site-head>button[title="Mesajlar"]{display:none!important}
  .topbar{height:auto!important;min-height:62px;padding:9px var(--mobile-pad)!important;flex-wrap:wrap;gap:8px!important}
  .topbar .burger,.site-head>.icon-btn:first-child{width:42px!important;height:42px!important;flex:0 0 42px}
  .topbar .search{order:20;flex:1 0 100%;width:100%;height:42px}
  .topbar .user-chip{margin-left:auto;max-width:46px}
  .topbar .icon-btn{width:40px;height:40px}
  .page{padding:14px var(--mobile-pad) 28px!important}
  .page-head{gap:12px!important;margin-bottom:17px!important;flex-direction:column;align-items:stretch!important}
  .page-head h1{font-size:20px!important;line-height:1.25}
  .page-head p{line-height:1.55}
  .page-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%}
  .page-actions>*{width:100%;min-height:44px;justify-content:center}
  .grid{gap:12px!important}
  .g2,.g3,.g4,.g-2-1,.g-1-2{grid-template-columns:minmax(0,1fr)!important}
  .card{border-radius:15px!important}
  .card-head,.card-body{padding-left:14px!important;padding-right:14px!important}
  .tabs{width:100%;max-width:100%!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;padding-bottom:3px!important}
  .tabs::-webkit-scrollbar{display:none}.tabs>button{flex:0 0 auto;min-height:42px;scroll-snap-align:start}
  .tbl-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .by-listing-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important;gap:7px!important}
  .by-listing-actions .btn{width:100%;justify-content:center;min-height:40px}
  .list-item{min-width:0}.list-item>*{min-width:0}
  .msg{max-width:88%!important;overflow-wrap:anywhere}
  .composer{position:sticky;bottom:0;background:var(--surface);padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
  .composer input,.composer textarea{min-width:0}
  .drawer{width:min(92vw,420px)!important;max-width:420px!important}
  .drawer-head{padding-left:14px!important;padding-right:14px!important}
  .drawer-foot{padding:12px 14px max(12px,env(safe-area-inset-bottom))!important}
  .modal-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important}
  .modal-actions>*{width:100%;min-height:44px;justify-content:center}
  .info-head{height:auto!important;min-height:64px;padding:9px var(--mobile-pad)!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .info-head .bt-logo{font-size:14px;justify-self:center;min-height:38px}
  .info-head nav{margin:0!important;width:100%;display:flex!important;justify-content:flex-start;gap:6px!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0 4px;scroll-snap-type:x proximity}
  .info-head nav::-webkit-scrollbar{display:none}
  .info-head nav a,.info-head nav a:not(.info-create){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;min-height:40px;padding:8px 12px!important;scroll-snap-align:start;white-space:nowrap}
  .info-create{white-space:nowrap}
  .info-hero h1{font-size:32px!important;letter-spacing:-1px!important}
  .info-section>h2{font-size:22px}
  .head{height:auto!important;min-height:64px;padding:10px var(--mobile-pad)!important;gap:8px!important;display:grid!important;grid-template-columns:minmax(96px,1fr) auto auto!important;align-items:center}
  .head .logo{margin:0;justify-self:start;font-size:14px}.head .spacer{display:none}.head .btn{min-height:42px;padding:8px 11px!important;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap}
  .layout{gap:14px!important}.gallery{padding:10px!important}.info{padding:17px!important}
  .hero img{object-fit:contain!important}.title{font-size:21px!important;overflow-wrap:anywhere}.price{font-size:22px!important}
  .actions{display:grid!important;grid-template-columns:1fr!important}.actions .btn{width:100%;min-height:46px}
  #home-vip,#search-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;align-items:stretch}
  .by-card .pb{padding:9px!important}
  .by-card-category{font-size:9px!important}
  .by-card-title{height:34px!important;min-height:34px!important;max-height:34px!important;font-size:11.5px!important;line-height:1.45!important;margin-bottom:7px!important}
  .by-card-meta{display:grid!important;gap:2px!important;font-size:8.75px!important;margin-top:6px!important;white-space:normal!important;overflow:visible!important}
  .by-card-price{font-size:10.5px;line-height:1.25}
  .by-card-location{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .by-card.is-barter .by-exchange{gap:5px!important}
  .by-card.is-barter .by-exchange .swap-side{min-height:42px;padding:6px 32px 6px 7px!important}
  .by-card.is-barter .by-exchange .swap-lbl{font-size:7.2px!important}
  .by-card.is-barter .by-exchange .swap-t{min-height:25px;font-size:9.5px!important;line-height:1.32!important}
  .by-card.is-barter .by-exchange .swap-ico{right:7px;width:22px;height:22px}
  .by-card.is-barter .by-exchange .swap-ico svg{width:11px;height:11px}
  .by-card .strip{min-height:28px;padding:6px 8px!important;font-size:8.25px!important;white-space:nowrap}
  .info-grid,.contact-box{grid-template-columns:minmax(0,1fr)!important}
  .info-card,.contact-action,.step{width:100%;min-width:0}
  .info-foot>div{width:100%;align-items:center!important;text-align:center}
}

@media(max-width:520px){
  #home-vip,#search-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:10px!important}
  #home-vip>.by-card,#search-grid>.by-card{width:100%;min-width:0;max-width:none;justify-self:stretch}
  .by-card .pb{padding:9px!important}
  .by-barter-badge{min-height:21px!important;padding:4px 6px!important;font-size:7.5px!important;letter-spacing:.1px}
  .by-promotion-badge{min-height:21px!important;padding:4px 6px!important;font-size:7.5px!important}
}

@media(max-width:390px){
  .site-head{padding-left:8px!important;padding-right:8px!important}
  .site-head{grid-template-columns:42px minmax(100px,1fr) 126px 42px!important;gap:4px!important}
  .site-head .header-prefs{width:126px;gap:3px}
  .site-head .header-lang-trigger{width:40px;min-width:40px;padding:0;gap:0}
  .site-head .header-mode-toggle,.site-head .header-theme-trigger{width:40px;min-width:40px}
  .site-head .az-flag{width:24px;height:16px}
  .site-head .wordmark{font-size:0!important;letter-spacing:0!important}
  .hero-in{padding-left:14px!important;padding-right:14px!important}
  .hero h1{font-size:30px!important;letter-spacing:-1px!important}
  .hero-search{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)!important}
  .hero-search input{font-size:11px!important}
  .hero-stage{max-width:100%;overflow:hidden}
  .by-market-tabs{gap:5px}.by-market-tab{padding-left:4px;padding-right:4px}
  .by-subcategory-grid{grid-template-columns:1fr!important}
  .page-actions{grid-template-columns:1fr!important}
  .by-listing-actions{grid-template-columns:1fr!important}
  .specs{grid-template-columns:1fr!important}
  .head{grid-template-columns:minmax(88px,1fr) auto auto!important}
  .head .btn{font-size:11px;padding:7px 8px!important}
}

@media(prefers-reduced-motion:reduce){.sidebar-backdrop{transition:none}}

/* Keep page scrolling available on phones without painting a heavy brand rail. */
@media(max-width:640px){
  html,body{scrollbar-width:none}
  html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;height:0}
  .drawer-body,.bt-create-dialog,.bt-select__menu{scrollbar-width:thin}
}
/* Unified profile-avatar rendering across public, customer, create and admin views. */
.avatar,.public-account-avatar,.public-auth-avatar,#create-account-avatar,.admin-sidebar-avatar,.customer-avatar-editor-preview,.bt-header-avatar,.bt-reel-avatar{
  position:relative;overflow:hidden;isolation:isolate;flex-shrink:0;aspect-ratio:1/1
}
.avatar>img,.public-account-avatar>img,.public-auth-avatar>img,#create-account-avatar>img,.admin-sidebar-avatar>img,.customer-avatar-editor-preview>img,.bt-header-avatar>img,.bt-reel-avatar>img{
  position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:inherit;object-fit:cover;object-position:50% 35%;background:inherit
}
.bt-avatar-fallback{position:relative;z-index:1;grid-area:1/1;display:grid;width:100%;height:100%;place-items:center;color:inherit;font:inherit;line-height:1}
.by-message-row{display:flex;align-items:flex-end;gap:8px;margin:8px 0}.by-message-row.out{justify-content:flex-end}.by-message-row>.avatar{width:30px;height:30px;flex:0 0 30px;border-radius:10px;font-size:9px}.by-message-row>.msg{margin:0}.by-message-row.out>.avatar{order:2}
.public-auth-avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand-d));color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700}
.site-head>.public-auth-btn.is-signed-in{width:44px;min-width:44px;flex:0 0 44px;padding:0;gap:0;overflow:hidden}
.site-head>.public-auth-btn.is-signed-in>svg{display:none!important}
.site-head>.public-auth-btn.is-signed-in>.public-auth-avatar{display:grid!important}
@media(max-width:640px){.public-auth-avatar{width:34px;height:34px;border-radius:9px}}
@media(max-width:1024px){.site-head>.public-auth-btn.is-signed-in{width:42px!important;min-width:42px!important;flex-basis:42px}}

/* Remove the browser's blue touch flash without hiding keyboard focus. */
a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],label[for],summary{
  -webkit-tap-highlight-color:transparent;
}
@media(pointer:coarse){a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],label[for],summary{touch-action:manipulation}}
:focus:not(:focus-visible){outline:none}
:focus-visible{outline:3px solid color-mix(in srgb,var(--brand,#0f927e) 32%,transparent);outline-offset:2px}

/* Compact promotion status; purchase labels remain explicit. */
.bt-boost-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;box-sizing:border-box;border:1px solid #ffffff70;border-radius:50%;background:linear-gradient(145deg,#119b8e,#08716d);color:#fff;box-shadow:0 3px 9px #083d3b26;vertical-align:middle;cursor:help}
.bt-boost-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.bt-boost-icon:focus-visible{outline:2px solid var(--brand,#08716d);outline-offset:3px}
.bt-boost-icon::after{content:attr(data-boost-tip);position:absolute;z-index:10;left:calc(100% + 6px);top:0;width:max-content;max-width:190px;padding:7px 10px;border-radius:8px;background:#172c32;color:#fff;font:600 11px/1.4 Poppins,sans-serif;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(-3px);transition:opacity .15s,transform .15s,visibility .15s}
.bt-boost-icon:hover::after,.bt-boost-icon:focus::after{opacity:1;visibility:visible;transform:translateX(0)}
.related-media>.bt-boost-icon{position:absolute;left:8px;top:8px}
.listing-boost-status{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
@media(prefers-reduced-motion:reduce){.bt-boost-icon::after{transition:none}}
