/* RESPONSIVE OVERRIDES. Load this file LAST, after every other .css file. */
img,video{max-width:100%}
body{overflow-x:hidden}
.topbar .search{min-width:0}
.card:first-child img{max-width:100%}

/* ---------- Tablets and small laptops ---------- */
@media(max-width:900px){
 .topbar{gap:14px;padding:12px 16px}
 .topbar nav{gap:16px;font-size:16px}
 .card:first-child img{width:100%;height:auto}
 .grid{padding:16px}
 .profile{padding:0 16px 24px;gap:16px}
 .rgrid{padding:16px 24px 32px;gap:24px}
 .dmain{padding:18px}
}

/* ---------- Phones and narrow windows ---------- */
@media(max-width:700px){
 .topbar{flex-wrap:wrap;gap:10px 12px;padding:10px 14px}
 .logo{font-size:24px}
 .logo svg{width:30px;height:30px}
 .icons{margin-left:auto}
 .topbar .search{display:block;order:3;flex:1 1 100%;max-width:none;height:38px;font-size:16px}
 .on-login .topbar .search{display:none}
 .mnav{padding:8px 14px;gap:18px;overflow-x:auto;white-space:nowrap}
 .cats{gap:14px;padding:8px 14px}

 .grid{columns:2 140px;gap:10px;padding:12px}
 .card{margin-bottom:10px}

 .auth{padding:28px 20px}

 .banner{height:140px}
 .profile{padding:0 14px 20px}
 .side{width:100%}
 .side .pic{width:96px;height:96px}
 .tabs{gap:8px}
 .tab{flex:1;padding:10px 12px}
 .panel{padding:16px}
 .offer{margin-bottom:18px}
 .offer .info{padding:16px}
 .offer h3{font-size:20px}
 .offer .from{font-size:18px}
 .offer .btn{height:52px;font-size:20px;box-shadow:3px 3px 0 #170c1d}

 .sh{padding:14px;gap:12px}
 .sh h1{white-space:normal;font-size:22px}
 .sbox{min-width:0;flex:1 1 100%;height:46px}
 .rgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));padding:14px;gap:16px 12px}

 .chat{height:calc(100vh - 60px)}
 .cin{margin:8px 10px 12px}

 .cwrap{padding:16px 12px 48px}
 .cmp{padding:10px}
 .pact button{padding:8px 0}
 .shop h1{font-size:24px}
 .shop p{font-size:16px}

 .sidebar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:12px 14px}
 .sidebar .label{width:100%;margin:6px 0 0}
 .sidebar .go{margin-bottom:0}
 .dmain{padding:16px 14px}
 .dgrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
 .item{flex-wrap:wrap}
 .item b{padding:4px 16px}
 .item small{margin-left:0;width:100%}
 .filters{flex-wrap:wrap}
 .dform .din{min-width:0;flex:1 1 100%}
 .acct{max-width:100%}

 .otl{right:96px}
 .otl h2{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ocap{font-size:20px}
 .otot{font-size:24px}
 .oreq{height:60px;font-size:22px}
 .obtn{margin-bottom:8px}
 .rbox,.tbox,.cbox{padding-left:16px;padding-right:16px}
}
@supports (height:100dvh){@media(max-width:700px){.chat{height:calc(100dvh - 60px)}}}

/* ---------- Small phones ---------- */
@media(max-width:480px){
 .logo{font-size:22px}
 .tab{padding:10px 8px;font-size:14px}
 .cs{gap:10px}
 .cs .cen{width:34vw}
 .cs .sid{width:30vw}
 .cs::before,.cs::after{height:200px}
 .cn{width:40px;height:40px}
 .cn.pv{left:2%}
 .cn.nx{right:2%}
 .rgrid{gap:14px 10px}
}